Opened 2 months ago
Last modified 2 months ago
#35748 closed Cleanup/optimization
Document that Field.formfield() may return None — at Version 1
Reported by: | Adam Johnson | Owned by: | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
The current documentation only states that a form field should be returned. None
is also an allowed return value, as used by AutoFieldMixin, used to ignore the field when constructing the model form.
(Updating django-stubs types in this PR.)
Note:
See TracTickets
for help on using tickets.