diff --git a/jsonis/jwt/views.py b/jsonis/jwt/views.py index 78389ea..d2bb77e 100644 --- a/jsonis/jwt/views.py +++ b/jsonis/jwt/views.py @@ -38,7 +38,7 @@ def dispatch(self, request, *args, **kwargs): def _check_token_data(self, jwt_token_data): """Parsed token data checks. Returns a Response if there is an error, None otherwise""" try: - self.user = get_user_model().objects.get(pk=self.jwt_token_data['id']) + self.user = get_user_model().objects.get(pk=jwt_token_data['id']) except (TypeError, KeyError): return self.render_api_error_response('Not authenticated - Bad authorization header data', status=401) except get_user_model().DoesNotExist: diff --git a/setup.py b/setup.py index 131fb84..b003945 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='django-jsonis', - version='0.1.11', + version='0.1.12', description='Django JSON Utils', author='Tomas Rychlik', author_email='rychlis@rychlis.cz',