Commit 4597136a authored by Martijn Pieters's avatar Martijn Pieters

Add backward compatible postonly decorator

parent da9a1115
...@@ -72,4 +72,6 @@ def requestmethod(method): ...@@ -72,4 +72,6 @@ def requestmethod(method):
return _methodtest return _methodtest
__all__ = ('requestmethod',) postonly = requestmethod('POST')
__all__ = ('requestmethod', 'postonly')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment