Opened 10 days ago

Last modified 9 hours 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 Adam Johnson)

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.)

Change History (1)

comment:1 by Adam Johnson, 10 days ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top