Opened 18 years ago

Closed 17 years ago

#4544 closed (fixed)

list_filter can accept "choices"

Reported by: marcuzero@… 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)

4544_list_filter.diff (716 bytes ) - added by Matt Croydon 18 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 by Yaggo, 18 years ago

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

comment:2 by Simon G. <dev@…>, 18 years ago

Triage Stage: UnreviewedAccepted

Want to work up docs patch? :)

by Matt Croydon, 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 Matt Croydon, 18 years ago

Has patch: set
Version: 0.96SVN

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

comment:4 by Matt Croydon, 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 James Bennett, 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 Simon G. <dev@…>, 17 years ago

Triage Stage: AcceptedReady for checkin

comment:7 by Russell Keith-Magee, 17 years ago

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