Created
May 4, 2016 22:34
-
-
Save simonw/75a68c207994f7432da3b4f8d4dbbabe to your computer and use it in GitHub Desktop.
How to re-enable arbitrary querystring lookups for Django objects in the admin (deliberately re-opening this old security hole so only do this if you 100% trust everyone with access to your Django admin panel: https://www.djangoproject.com/weblog/2010/dec/22/security/ )
This file contains hidden or 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
| admin.site.register(MyModel, | |
| lookup_allowed=lambda *args, **kwargs: True, | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment