create initial models and mobile test for mojtaba eshaghi

This commit is contained in:
2025-05-05 15:25:46 +03:30
parent 7e301c14b7
commit ec58d9ef5e
167 changed files with 614 additions and 23 deletions

View File

@@ -1,4 +1,5 @@
from apps.authentication.api.v1.serializers.jwt import CustomizedTokenObtainPairSerializer
from rest_framework_simplejwt.authentication import JWTAuthentication
from rest_framework_simplejwt.views import TokenObtainPairView
from rest_framework.viewsets import ModelViewSet
from rest_framework.decorators import action
@@ -10,10 +11,12 @@ class CustomizedTokenObtainPairView(TokenObtainPairView):
serializer_class = CustomizedTokenObtainPairSerializer
# Example Code
class Authentication(ModelViewSet):
queryset = User
serializer_class = ''
permission_classes = ''
authentication_classes = [JWTAuthentication]
@action(
methods=['post', ],