kylef/django-request — Issue #30: Filtering by user__username not allowed
Author: TakeruWolf
Created: 2012-02-16 16:27:02+00:00
State: open

Since Django 1.2.4 filters that are not included in list_filter can't be used for securities sake. Clicking on a username fails since then with the exception:

SuspiciousOperation at /admin/request/request/
Filtering by user__username not allowed

But one can override the admin class:

def lookup_allowed(self, key):
if key == 'user__username':
return True
return super(RequestAdmin, self).lookup_allowed(key)