Opened 10 years ago

Closed 9 years ago

#4544 closed (fixed)

list_filter can accept "choices"

Reported by: marcuzero@… Owned by: nobody
Component: Documentation Version: master
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: UI/UX:

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)

4544_list_filter.diff (716 bytes) - added by Matt Croydon 9 years ago.
Documentation patch for list_filter to add two field types mentioned in ticket

Download all attachments as: .zip

Change History (8)

comment:1 Changed 10 years ago by Yaggo

CharField(choices=...) seems to work, too. Running django svn revision 5428 (2007-06-02).

comment:2 Changed 9 years ago by Simon G. <dev@…>

Triage Stage: UnreviewedAccepted

Want to work up docs patch? :)

Changed 9 years ago by Matt Croydon

Attachment: 4544_list_filter.diff added

Documentation patch for list_filter to add two field types mentioned in ticket

comment:3 Changed 9 years ago by Matt Croydon

Has patch: set
Version: 0.96SVN

See attachment for patch to include CharField and IntegerField to list_filter documentation.

comment:4 Changed 9 years ago by Matt Croydon

Summary: list_filter can accept "choices"[patch] list_filter can accept "choices"

Changed summary to indicate patch was available.

comment:5 Changed 9 years ago by James Bennett

Summary: [patch] list_filter can accept "choices"list_filter can accept "choices"

(restoring subject; the 'has_patch' flag does that now)

comment:6 Changed 9 years ago by Simon G. <dev@…>

Triage Stage: AcceptedReady for checkin

comment:7 Changed 9 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [6179]) Fixed #4544 -- Updated docs for allowed field types in an admin list_filter. Thanks to Matt Croydon.

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