def create(self, request, *args, **kwargs):
    auth_token = self.kwargs['auth_token']
    user_queryset = self.queryset.filter(email_auth_token=auth_token)
    try:
        if user_queryset.exists():
            user = User.objects.get(email_auth_token=user_queryset.first().email_auth_token)
            user.is_corrector = True
            user.save()
            return HttpResponseRedirect(f'http://localhost:3000/')
        return JsonResponse({'message': 'USER DOES NOT EXIST'}, status=400)
    except jwt.exceptions.DecodeError:
        return JsonResponse({'message': 'INVALID TOKEN'}, status=400)
    except jwt.exceptions.ExpiredSignatureError:
        return JsonResponse({'message': 'EXPIRED TOKEN'}, status=400)
def create(self, request, *args, **kwargs):
    auth_token = self.kwargs['auth_token']
    user_queryset = self.queryset.filter(email_auth_token=auth_token)
    try:
        if user_queryset.exists():
            user = User.objects.get(email_auth_token=user_queryset.first().email_auth_token)
            user.is_corrector = True
            user.save()
            return HttpResponseRedirect(f'http://localhost:3000/')
        return JsonResponse({'message': 'USER DOES NOT EXIST'}, status=400)
    except jwt.exceptions.DecodeError:
        return JsonResponse({'message': 'INVALID TOKEN'}, status=400)
    except jwt.exceptions.ExpiredSignatureError:
        return JsonResponse({'message': 'EXPIRED TOKEN'}, status=400)