tests&small update

This commit is contained in:
Anton Zhyrney
2017-01-07 07:13:49 +02:00
parent 1317b1799c
commit 47a4f34cdf
3 changed files with 43 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ class HTTPMethodView:
To add any decorator you could set it into decorators variable
"""
decorators = ()
decorators = []
def dispatch_request(self, request, *args, **kwargs):
handler = getattr(self, request.method.lower(), None)