From abf141ba1b3fceb98d4c101440bceb27922ceb03 Mon Sep 17 00:00:00 2001 From: Iman Karimi Date: Sat, 16 Apr 2022 16:15:08 +0430 Subject: [PATCH] bug fixed fot get_protect_key --- auth_protection/authentications.py | 2 +- auth_protection/serializers.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/auth_protection/authentications.py b/auth_protection/authentications.py index c5a968e..896a5b4 100644 --- a/auth_protection/authentications.py +++ b/auth_protection/authentications.py @@ -2,7 +2,7 @@ from rest_framework_simplejwt.authentication import JWTAuthentication from rest_framework_simplejwt.exceptions import InvalidToken -from utils import get_protect_key +from auth_protection.utils import get_protect_key class JWTAuthProtection(JWTAuthentication): diff --git a/auth_protection/serializers.py b/auth_protection/serializers.py index dd83bc8..5f066c7 100644 --- a/auth_protection/serializers.py +++ b/auth_protection/serializers.py @@ -1,6 +1,6 @@ from rest_framework_simplejwt.serializers import TokenObtainPairSerializer -from utils import get_protect_key +from auth_protection.utils import get_protect_key class ProtectTokenObtainPairSerializer(TokenObtainPairSerializer): diff --git a/setup.py b/setup.py index ebd5065..d7ba73b 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name='django-auth-protection', - version='1.0.1', + version='1.0.2', zip_safe=False, packages=find_packages(), include_package_data=True,