button for filtering the admin changelist based on callable

18 views
Skip to first unread message

TeenSpirit83

unread,
Dec 30, 2009, 2:29:05 PM12/30/09
to Django users
Hi,
I have a yyyy callable in the modeladmin for an object XX.
Now I want to add a tool button (or something clickable) for filtering
the changelist displaying only the object having yyyy value less than
30.
How would you implement somthing like this?
Thanks a lot!

Tomasz Zieliński

unread,
Jan 3, 2010, 8:15:11 AM1/3/10
to Django users
On 30 Gru 2009, 20:29, TeenSpirit83 <pasquale.alibe...@gmail.com>
wrote:

You could use default Django admin filtering but it's limited
to what database can do and doesn't support custom filters.

But it seems that there is some undocumented (?) possibility:

http://stackoverflow.com/questions/991926/custom-filter-in-django-admin

--
Tomasz Zielinski
http://pyconsultant.eu

Reply all
Reply to author
Forward
0 new messages