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.

--
You received this message because you are subscribed to the Google Groups "Django 
developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/alpine.DEB.2.02.1402141247410.19498%40lap-x201.fen.aptivate.org.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to