[Django] #33658: Undocumented argument `blank` for `forms.ModelChoiceField`

4 views
Skip to first unread message

Django

unread,
Apr 23, 2022, 2:13:45 PM4/23/22
to django-...@googlegroups.com
#33658: Undocumented argument `blank` for `forms.ModelChoiceField`
-----------------------------------------+------------------------
Reporter: Carsten Fuchs | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 4.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
After #26813 and da79ee472d803963dc3ea81ee67767dc06068aac, using a
`RadioSelect` with a `forms.ModelChoiceField` requires `blank=True` in
order to have the `RadioSelect` include an empty option. Also see #32434
for a related issue.

However, the argument `blank` is
[https://docs.djangoproject.com/en/4.0/ref/forms/fields/#modelchoicefield
currently not documented].

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

Reply all
Reply to author
Forward
0 new messages