Wrong naming in classmethods. Sorry.

This commit is contained in:
juanifioren 2015-01-29 12:54:13 -03:00
parent 998032ea52
commit 8e78e2dc9e
2 changed files with 3 additions and 3 deletions

View file

@ -84,7 +84,7 @@ class TokenEndpoint(object):
return dic
@classmethod
def response(self, dic, status=200):
def response(cls, dic, status=200):
"""
Create and return a response object.
"""

View file

@ -64,7 +64,7 @@ class UserInfoEndpoint(object):
return dic
@classmethod
def response(self, dic):
def response(cls, dic):
response = JsonResponse(dic, status=200)
response['Cache-Control'] = 'no-store'
@ -73,7 +73,7 @@ class UserInfoEndpoint(object):
return response
@classmethod
def error_response(self, code, description, status):
def error_response(cls, code, description, status):
response = HttpResponse(status=status)
response['WWW-Authenticate'] = 'error="{0}", error_description="{1}"'.format(code, description)