[Django] #24674: NullBooleanField in a model is converted to NullBooleanField in a form, not CharField

18 views
Skip to first unread message

Django

unread,
Apr 20, 2015, 2:56:01 PM4/20/15
to django-...@googlegroups.com
#24674: NullBooleanField in a model is converted to NullBooleanField in a form, not
CharField
-------------------------------+--------------------
Reporter: knbk | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
The documentation[1] states that a `NullBooleanField` on a model is
converted to a `CharField` when using a `ModelForm`. It is actually
converted to a `NullBooleanField` [2].

[1] https://docs.djangoproject.com/en/1.8/topics/forms/modelforms/#field-
types
[2]
https://github.com/django/django/blob/stable/1.8.x/django/db/models/fields/__init__.py#L2080

--
Ticket URL: <https://code.djangoproject.com/ticket/24674>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 20, 2015, 3:03:38 PM4/20/15
to django-...@googlegroups.com
#24674: NullBooleanField in a model is converted to NullBooleanField in a form, not
CharField
-------------------------------+------------------------------------

Reporter: knbk | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by charettes):

* needs_docs: => 0
* needs_better_patch: => 0
* version: 1.8 => master
* needs_tests: => 0
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/24674#comment:1>

Django

unread,
Apr 20, 2015, 3:12:05 PM4/20/15
to django-...@googlegroups.com
#24674: NullBooleanField in a model is converted to NullBooleanField in a form, not
CharField
-------------------------------+-------------------------------------
Reporter: knbk | Owner: charettes
Type: Bug | Status: assigned

Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------+-------------------------------------
Changes (by charettes):

* status: new => assigned
* owner: nobody => charettes


--
Ticket URL: <https://code.djangoproject.com/ticket/24674#comment:2>

Django

unread,
Apr 20, 2015, 3:19:39 PM4/20/15
to django-...@googlegroups.com
#24674: NullBooleanField in a model is converted to NullBooleanField in a form, not
CharField
-------------------------------+-------------------------------------
Reporter: knbk | Owner: charettes
Type: Bug | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------+-------------------------------------
Changes (by Simon Charette <charette.s@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"37e23c606031d5b34197e196fb6e6fed0137bb37" 37e23c60]:
{{{
#!CommitTicketReference repository=""
revision="37e23c606031d5b34197e196fb6e6fed0137bb37"
Fixed #24674 -- Documented the correct NullBooleanField formfield.

Thanks to knbk for the report.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24674#comment:3>

Django

unread,
Apr 20, 2015, 3:20:24 PM4/20/15
to django-...@googlegroups.com
#24674: NullBooleanField in a model is converted to NullBooleanField in a form, not
CharField
-------------------------------+-------------------------------------
Reporter: knbk | Owner: charettes
Type: Bug | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------+-------------------------------------

Comment (by Simon Charette <charette.s@…>):

In [changeset:"beb957041cd8c4d4badda58df1ed4d9729d9672c" beb9570]:
{{{
#!CommitTicketReference repository=""
revision="beb957041cd8c4d4badda58df1ed4d9729d9672c"
[1.8.x] Fixed #24674 -- Documented the correct NullBooleanField formfield.

Thanks to knbk for the report.

Backport of 37e23c606031d5b34197e196fb6e6fed0137bb37 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24674#comment:4>

Django

unread,
Apr 20, 2015, 3:21:46 PM4/20/15
to django-...@googlegroups.com
#24674: NullBooleanField in a model is converted to NullBooleanField in a form, not
CharField
-------------------------------+-------------------------------------
Reporter: knbk | Owner: charettes
Type: Bug | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------+-------------------------------------

Comment (by Simon Charette <charette.s@…>):

In [changeset:"a297af972f3bf51ecf7670c951c31904e4eefb8e" a297af9]:
{{{
#!CommitTicketReference repository=""
revision="a297af972f3bf51ecf7670c951c31904e4eefb8e"
[1.7.x] Fixed #24674 -- Documented the correct NullBooleanField formfield.

Thanks to knbk for the report.

Backport of 37e23c606031d5b34197e196fb6e6fed0137bb37 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24674#comment:5>

Reply all
Reply to author
Forward
0 new messages