Opened 18 years ago
Closed 18 years ago
#4544 closed (fixed)
list_filter can accept "choices"
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Documentation | Version: | dev |
| Severity: | Keywords: | list_filter | |
| 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
Page http://www.djangoproject.com/documentation/model-api/#list-filter says list_filter accepts BooleanField, DateField, DateTimeField or ForeignKey. Looks like IntegerField(choices=Foo)also works (at least at my site with 0.96)
Attachments (1)
Change History (8)
comment:1 by , 18 years ago
by , 18 years ago
| Attachment: | 4544_list_filter.diff added |
|---|
Documentation patch for list_filter to add two field types mentioned in ticket
comment:3 by , 18 years ago
| Has patch: | set |
|---|---|
| Version: | 0.96 → SVN |
See attachment for patch to include CharField and IntegerField to list_filter documentation.
comment:4 by , 18 years ago
| Summary: | list_filter can accept "choices" → [patch] list_filter can accept "choices" |
|---|
Changed summary to indicate patch was available.
comment:5 by , 18 years ago
| Summary: | [patch] list_filter can accept "choices" → list_filter can accept "choices" |
|---|
(restoring subject; the 'has_patch' flag does that now)
comment:6 by , 18 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
comment:7 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
CharField(choices=...) seems to work, too. Running django svn revision 5428 (2007-06-02).