django-chelseru 2.0.4__tar.gz → 2.0.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django_chelseru-2.0.4/django_chelseru.egg-info → django_chelseru-2.0.5}/PKG-INFO +1 -1
- {django_chelseru-2.0.4 → django_chelseru-2.0.5/django_chelseru.egg-info}/PKG-INFO +1 -1
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/views.py +3 -1
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/setup.py +1 -1
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/LICENSE +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/MANIFEST.in +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/README.md +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/README_PA.md +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/django_chelseru.egg-info/SOURCES.txt +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/django_chelseru.egg-info/dependency_links.txt +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/django_chelseru.egg-info/requires.txt +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/django_chelseru.egg-info/top_level.txt +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/__init__.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/admin.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/apps.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/consumers.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/middlewares.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0001_initial.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0002_otpcode_session_user.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0003_rename_mobile_otpcode_mobile_number.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0004_rename_message_message_sms.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0005_rename_message_sms_messagesms_chatroom_messagechat.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0006_alter_chatroom_user_1_alter_chatroom_user_2_and_more.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0007_chatroom_pinned_for_chatroom_status_chatroom_users_and_more.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0008_alter_chatroompermissions_user.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0009_alter_chatroom_status.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0010_chatroom_banneds_chatroom_descriptions_chatroom_name_and_more.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0011_alter_chatroom_user_1_alter_chatroom_user_2.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0012_payment.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0013_payment_authority_payment_data_payment_status_code.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0014_payment_gateway_title_payment_gateway_url.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0015_payment_message.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0016_payment_card_hash_payment_card_pan_and_more.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0017_alter_payment_callback_url_alter_payment_gateway_url.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0018_alter_payment_ref_id.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0019_payment_created_at_payment_status_payment_updated_at.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0020_payment_paid_at.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0021_alter_payment_message.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0022_payment_pay_mode_wallet.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/__init__.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/models.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/routing.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/serializers.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/services.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/settings.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/signals.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/tests.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/urls.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/validators.py +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/pyproject.toml +0 -0
- {django_chelseru-2.0.4 → django_chelseru-2.0.5}/setup.cfg +0 -0
|
@@ -5,6 +5,8 @@ from rest_framework.generics import ListAPIView
|
|
|
5
5
|
from rest_framework.response import Response
|
|
6
6
|
from rest_framework.status import HTTP_200_OK, HTTP_204_NO_CONTENT, HTTP_500_INTERNAL_SERVER_ERROR, HTTP_502_BAD_GATEWAY, HTTP_401_UNAUTHORIZED, HTTP_400_BAD_REQUEST, HTTP_409_CONFLICT, HTTP_404_NOT_FOUND
|
|
7
7
|
from rest_framework.exceptions import NotFound, ValidationError
|
|
8
|
+
from rest_framework import status
|
|
9
|
+
|
|
8
10
|
from django.contrib.auth.models import User as UserDefault
|
|
9
11
|
|
|
10
12
|
from .services import send_message, create_payment, verify_payment
|
|
@@ -238,7 +240,7 @@ class Authentication(APIView):
|
|
|
238
240
|
return Response({'error': str(e)}, status=HTTP_204_NO_CONTENT)
|
|
239
241
|
except Exception:
|
|
240
242
|
logger.exception("Error while creating tokens for user (mobile=%s). user object: %r", mobile_number, user)
|
|
241
|
-
return Response({'error': 'Token generation failed.'}, status=
|
|
243
|
+
return Response({'error': 'Token generation failed.'}, status=HTTP_500_INTERNAL_SERVER_ERROR)
|
|
242
244
|
# return Response({'error': 'An error occurred while generating or sending the otpcode, please contact the www.chelseru.com support team.'}, status=HTTP_500_INTERNAL_SERVER_ERROR)
|
|
243
245
|
|
|
244
246
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_chelseru-2.0.4 → django_chelseru-2.0.5}/django_chelseru.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0002_otpcode_session_user.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0009_alter_chatroom_status.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0015_payment_message.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0018_alter_payment_ref_id.py
RENAMED
|
File without changes
|
|
File without changes
|
{django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0020_payment_paid_at.py
RENAMED
|
File without changes
|
{django_chelseru-2.0.4 → django_chelseru-2.0.5}/drfchelseru/migrations/0021_alter_payment_message.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|