Commit f472e378 authored by Rolf Aas's avatar Rolf Aas
Browse files

Variable names adhere to code standards in Python

parent 513fae70
...@@ -70,10 +70,10 @@ class RememberMe( ...@@ -70,10 +70,10 @@ class RememberMe(
return Response({"remember_me": self.rememberme()}) return Response({"remember_me": self.rememberme()})
def post(self, request): def post(self, request):
cookieObject = namedtuple("Cookies", request.COOKIES.keys())( cookie_object = namedtuple("Cookies", request.COOKIES.keys())(
*request.COOKIES.values() *request.COOKIES.values()
) )
user = self.get_user(cookieObject) user = self.get_user(cookie_object)
refresh = RefreshToken.for_user(user) refresh = RefreshToken.for_user(user)
return Response( return Response(
{ {
......
Supports Markdown
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