Commit d7abb33e authored by Luke Plant's avatar Luke Plant
Browse files

Fixed #12933 - AdminSite.admin_view disables @csrf_view_exempt

Thanks to philomat for report and patch.



git-svn-id: http://code.djangoproject.com/svn/django/trunk@12619 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 9f592ecc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -196,6 +196,7 @@ class AdminSite(object):
            inner = never_cache(inner)
        # We add csrf_protect here so this function can be used as a utility
        # function for any view, without having to repeat 'csrf_protect'.
        if not getattr(view, 'csrf_exempt', False):
            inner = csrf_protect(inner)
        return update_wrapper(inner, view)