Skip to content
This repository
Browse code

removed decorator duplicated from django

  • Loading branch information...
commit 8bf571be6af006cb8426432e5a66e52561018463 1 parent 3859baf
Fred Wenzel authored April 27, 2011

Showing 1 changed file with 0 additions and 10 deletions. Show diff stats Hide diff stats

  1. 10  lib/decorators.py
10  lib/decorators.py
... ...
@@ -1,10 +0,0 @@
1  
-from django import http
2  
-
3  
-
4  
-def require_post(f):
5  
-    def wrapper(request, *args, **kw):
6  
-        if request.method == 'POST':
7  
-            return f(request, *args, **kw)
8  
-        else:
9  
-            return http.HttpResponseNotAllowed(['POST'])
10  
-    return wrapper

0 notes on commit 8bf571b

Please sign in to comment.
Something went wrong with that request. Please try again.