Skip to content

Instantly share code, notes, and snippets.

@EBNull
Created March 23, 2012 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EBNull/2173218 to your computer and use it in GitHub Desktop.
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
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