Hi all,
I just ran into bug #19182 <
https://code.djangoproject.com/ticket/19182>:
ModelAdmin filtering didn't work when list_filter includes a ('fieldname',
ClassName) tuple, but throws a SuspiciousOperation exception instead. The
ChangeList would display fine, but as soon as you tried to use it, it
would throw a SuspiciousOperation exception, because it hadn't correctly
added 'fieldname' to the list of valid filters.
This bug is already fixed in trunk, but I don't think it's been backported
to 1.6.x. At least, I don't see the fix in the lookup_allowed() method at
<
https://github.com/django/django/blob/stable/1.6.x/django/contrib/admin/options.py>.
Since the documentation for 1.6 says that this should work
<
https://docs.djangoproject.com/en/1.6/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter>
but it actually doesn't in 1.6, please would you consider backporting this
fix to the 1.6 stable branch?
Cheers, Chris.
--
Aptivate |
http://www.aptivate.org | Phone:
+44 1223 967 838
Citylife House, Sturton Street, Cambridge, CB1 2QF, UK
Aptivate is a not-for-profit company registered in England and Wales
with company number 04980791.