Ticket #12933: fix_admin_view_csrf_exempt.diff
File fix_admin_view_csrf_exempt.diff, 557 bytes (added by , 15 years ago) |
---|
-
sites.py
196 196 inner = never_cache(inner) 197 197 # We add csrf_protect here so this function can be used as a utility 198 198 # function for any view, without having to repeat 'csrf_protect'. 199 inner = csrf_protect(inner) 199 if not getattr(view, 'csrf_exempt', False): 200 inner = csrf_protect(inner) 200 201 return update_wrapper(inner, view) 201 202 202 203 def get_urls(self):