Opened 16 years ago

Closed 16 years ago

#10419 closed (duplicate)

USStateField breaks admin inlines

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

Description

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 by legutierr, 16 years ago

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 by legutierr, 16 years ago

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 by Jacob, 16 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #4092

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