Created
March 23, 2012 17:57
-
-
Save EBNull/2173218 to your computer and use it in GitHub Desktop.
Allow url editing to customize changelist results. Reverts https://docs.djangoproject.com/en/1.2/releases/1.2.4/#restricted-filters-in-admin-interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib import admin | |
#Allow lookup by any kwargs in admin | |
#Reverts https://docs.djangoproject.com/en/1.2/releases/1.2.4/#restricted-filters-in-admin-interface | |
admin.ModelAdmin.lookup_allowed = lambda i, k, v: True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment