Opened 8 years ago

Closed 5 years ago

#6973 closed New feature (wontfix)

Feature Request: Sort methods/sortable attributes for USStateField, etc

Reported by: kjcole Owned by: nobody
Component: contrib.localflavor Version: master
Severity: Normal Keywords: sorting
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


In addition to validating state abbreviations, it would be nice to be able to sort by the full name rather than the abbreviation (and perhaps retrieve the state name and/or other static, simple information.) The same might also apply to countries: using the two-letter ISO abbreviation, get the three-letter abbreviation, ISO numeric code, country name, etc.

Change History (6)

comment:1 Changed 8 years ago by kjcole

  • Component changed from Uncategorized to django.contrib.localflavor
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 8 years ago by ericholscher

  • milestone set to post-1.0
  • Triage Stage changed from Unreviewed to Design decision needed

comment:3 Changed 7 years ago by anonymous

  • milestone post-1.0 deleted

Milestone post-1.0 deleted

comment:4 Changed 5 years ago by julien

  • Type set to New feature

comment:5 Changed 5 years ago by julien

  • Severity set to Normal

comment:6 Changed 5 years ago by Alex

  • Easy pickings unset
  • Resolution set to wontfix
  • Status changed from new to closed
  • UI/UX unset

Wontfixing this: you can easily change the ordering by overriding init in your form and sorting the choices on your widget however you'd like, there's no need to bloat every field with tons of options for how to sort its choices.

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