However, our documentation uses some `BooleaField` in a few examples (see
[1] for example) but they don't have a default value.
I propose that all usages of `BooleanField` in our documentation provide
an explicit default (`False` most likely) so that running the code doesn't
raise any warnings.
[1] https://docs.djangoproject.com/en/dev/topics/db/models/#multi-table-
inheritance
--
Ticket URL: <https://code.djangoproject.com/ticket/23283>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/23283#comment:1>
* owner: nobody => olasitarska
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/23283#comment:2>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/23283#comment:3>
* stage: Accepted => Ready for checkin
Comment:
Feel free to link to the pull request
https://github.com/django/django/pull/3061. It looks good to me.
--
Ticket URL: <https://code.djangoproject.com/ticket/23283#comment:4>
* needs_better_patch: 0 => 1
* stage: Ready for checkin => Accepted
Comment:
The PR looks good but I found more instances of `BooleanField` usage
(found with `git grep "BooleanField(" docs`):
* docs/ref/contrib/formtools/form-wizard.txt
* docs/ref/forms/validation.txt
* docs/topics/forms/index.txt
Would you mind fixing those too?
Thanks!
--
Ticket URL: <https://code.djangoproject.com/ticket/23283#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"69478859261bd1b3e82cc785fddb5e50e3e7645f"]:
{{{
#!CommitTicketReference repository=""
revision="69478859261bd1b3e82cc785fddb5e50e3e7645f"
Fixed #23283 -- Added default=False to BooleanField's in the docs.
Thanks Baptiste for the suggestion.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23283#comment:6>
Comment (by Tim Graham <timograham@…>):
In [changeset:"0f44d9f9b153a25376e57060e849cddfaab9c350"]:
{{{
#!CommitTicketReference repository=""
revision="0f44d9f9b153a25376e57060e849cddfaab9c350"
[1.7.x] Fixed #23283 -- Added default=False to BooleanField's in the docs.
Thanks Baptiste for the suggestion.
Backport of 6947885926 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23283#comment:7>
* status: closed => new
* needs_better_patch: 1 => 0
* has_patch: 1 => 0
* resolution: fixed =>
Comment:
Oops, looks like I was a bit too slow on the review.
I still think we should fix the remaining 3 (see comment 5) so I'll reopen
this ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/23283#comment:8>
* has_patch: 0 => 1
Comment:
I left them on purpose - these 3 remaining were in forms and I wasn't sure
if they're raising the same warnings :)
Here is a pull request with remaining three BooleanFields:
https://github.com/django/django/pull/3062
--
Ticket URL: <https://code.djangoproject.com/ticket/23283#comment:9>
* status: new => closed
* resolution: => fixed
Comment:
You're absolutely right, my mistake.
Thanks again.
--
Ticket URL: <https://code.djangoproject.com/ticket/23283#comment:10>