From 7f6126432bfe4d8684016eccb1d8ae855658f785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Thu, 24 May 2018 17:56:00 +0000 Subject: [PATCH] Change token data to expiration --- api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/views.py b/api/views.py index c337de50..ba4129c2 100644 --- a/api/views.py +++ b/api/views.py @@ -331,5 +331,5 @@ class ObtainExpiringAuthToken(ObtainAuthToken): return Response({ 'token': token.key, - 'expiration_date': token.created + token_duration + 'expiration': token.created + token_duration })