Permalink
Browse files

removed decorator duplicated from django

  • Loading branch information...
1 parent 3859baf commit 8bf571be6af006cb8426432e5a66e52561018463 @fwenzel fwenzel committed Apr 27, 2011
Showing with 0 additions and 10 deletions.
  1. +0 −10 lib/decorators.py
View
10 lib/decorators.py
@@ -1,10 +0,0 @@
-from django import http
-
-
-def require_post(f):
- def wrapper(request, *args, **kw):
- if request.method == 'POST':
- return f(request, *args, **kw)
- else:
- return http.HttpResponseNotAllowed(['POST'])
- return wrapper

0 comments on commit 8bf571b

Please sign in to comment.