Opened 19 years ago
Closed 19 years ago
#2455 closed enhancement (fixed)
USStateField to show list of US states in admin
| Reported by: | anonymous | Owned by: | Adrian Holovaty |
|---|---|---|---|
| Component: | Forms | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Design decision needed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | yes |
| Easy pickings: | no | UI/UX: | no |
Description
Here's a patch to db/models/fields/__init__.py that allows displaying a select box containing all US states in admin.
- Mikko Nylén
Attachments (2)
Change History (8)
by , 19 years ago
| Attachment: | usstates.patch added |
|---|
comment:1 by , 19 years ago
| Summary: | USStateField to show list of US states in admin → [patch] USStateField to show list of US states in admin |
|---|
comment:2 by , 19 years ago
| Status: | new → assigned |
|---|
comment:4 by , 19 years ago
| Component: | Admin interface → django.newforms |
|---|---|
| Patch needs improvement: | set |
| Summary: | [patch] USStateField to show list of US states in admin → USStateField to show list of US states in admin |
| Triage Stage: | Unreviewed → Design decision needed |
Maybe needs discussion on where this should go. Adrian has made a suggestion. There are some other fields that would also fit into that category, like #1466.
comment:5 by , 19 years ago
comment:6 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Thanks for this patch. It's probably a bit out of place for Django's database layer to include an entire list of American states and territories, though, so this is a good excuse to move
USStateFieldintodjango.contrib.usaor something like that.