Opened 9 years ago

Closed 9 years ago

#10419 closed (duplicate)

USStateField breaks admin inlines

Reported by: anonymous Owned by: nobody
Component: contrib.localflavor Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


If you make a class with a USStateField and make a ModelForm from it, the resulting select html element will not have a blank option as implied by the docs.

Change History (3)

comment:1 Changed 9 years ago by legutierr

This is especially a problem, because without a blank option, admin inlines break. In other words, unless this is fixed, USStateField cannot be used with any Model that might be edited as an inline. If this is used with an inline, then the inline will always produce errors, because the final blank form in the formset will always be seen as being partially filled out rather than completely empty.

comment:2 Changed 9 years ago by legutierr

Summary: US State Field does not have blank option when rendered as a model formUSStateField breaks admin inlines
Version: 1.0SVN

Changing the title to highlight the most pressing problem. Old title was "US State Field does not have blank option when rendered as a model form".

comment:3 Changed 9 years ago by Jacob

Resolution: duplicate
Status: newclosed

Duplicate of #4092

Note: See TracTickets for help on using tickets.
Back to Top