Skip to content

Commit

Permalink
Fixed typo in csrf_exempt decorator (exempt != except).
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaap Roes committed Apr 13, 2012
1 parent 838a377 commit ec48dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangopypi/decorators.py
Expand Up @@ -22,7 +22,7 @@ def available_attrs(fn):
try:
from django.contrib.csrf.middleware import csrf_exempt
except ImportError:
def csrf_except(view_func): return view_func
def csrf_exempt(view_func): return view_func

def basic_auth(view_func):
""" Decorator for views that need to handle basic authentication such as
Expand Down

0 comments on commit ec48dc1

Please sign in to comment.