fixed NewsList view

This commit is contained in:
Anatoly 2019-08-22 12:14:18 +03:00
parent 4910c23dcc
commit 414370ed73

View File

@ -106,11 +106,13 @@ class JWTGenericViewMixin(generics.GenericAPIView):
return [self.COOKIE(key='access_token',
value=_cookies.get('access_token'),
http_only=self.ACCESS_TOKEN_HTTP_ONLY,
secure=self.ACCESS_TOKEN_SECURE),
secure=self.ACCESS_TOKEN_SECURE,
max_age=_cookies.get('max_age')),
self.COOKIE(key='refresh_token',
value=_cookies.get('refresh_token'),
http_only=self.REFRESH_TOKEN_HTTP_ONLY,
secure=self.REFRESH_TOKEN_SECURE)]
secure=self.REFRESH_TOKEN_SECURE,
max_age=_cookies.get('max_age'))]
class JWTListAPIView(JWTGenericViewMixin, generics.ListAPIView):