Created
March 7, 2012 18:20
-
-
Save cooncesean/1994908 to your computer and use it in GitHub Desktop.
Remove transaction management from django admin options.py
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
> cd ~/.virtualenvs/tested/lib/python2.7/site-packages | |
> subl django | |
Open: django.contrib.admin.options.py | |
Search for the methods: | |
add_view() | |
change_view() | |
Remove the decorators above those methods: | |
@csrf_protect_m | |
@transaction.commit_on_success |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment