Wrong naming in classmethods. Sorry.
This commit is contained in:
parent
998032ea52
commit
8e78e2dc9e
|
@ -84,7 +84,7 @@ class TokenEndpoint(object):
|
||||||
return dic
|
return dic
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def response(self, dic, status=200):
|
def response(cls, dic, status=200):
|
||||||
"""
|
"""
|
||||||
Create and return a response object.
|
Create and return a response object.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -64,7 +64,7 @@ class UserInfoEndpoint(object):
|
||||||
return dic
|
return dic
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def response(self, dic):
|
def response(cls, dic):
|
||||||
|
|
||||||
response = JsonResponse(dic, status=200)
|
response = JsonResponse(dic, status=200)
|
||||||
response['Cache-Control'] = 'no-store'
|
response['Cache-Control'] = 'no-store'
|
||||||
|
@ -73,7 +73,7 @@ class UserInfoEndpoint(object):
|
||||||
return response
|
return response
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def error_response(self, code, description, status):
|
def error_response(cls, code, description, status):
|
||||||
|
|
||||||
response = HttpResponse(status=status)
|
response = HttpResponse(status=status)
|
||||||
response['WWW-Authenticate'] = 'error="{0}", error_description="{1}"'.format(code, description)
|
response['WWW-Authenticate'] = 'error="{0}", error_description="{1}"'.format(code, description)
|
||||||
|
|
Loading…
Reference in a new issue