b6303a2c23
Refactor create_superuser method in CustomUserManager to include email parameter in user creation.
i7012025-04-11 12:13:28 +05:00
10b3800171
Refactor VerifyPaymentView to improve wallet payment handling and response messages. Remove redundant insufficient funds check and enhance failure message clarity.
i7012025-04-11 00:41:44 +05:00
f8253d572d
Enhance VerifyPaymentView with user authorization check, streamline payment verification process, and improve response messages. Update settings.py for consistent formatting and clarity in PASSWORDLESS_AUTH configuration.
i7012025-04-10 21:50:21 +05:00
9595476569
Refactor UpdatePaymentSerializer to include only number_of_months field, add DeletePaymentView for payment deletion, and enhance VerifyPaymentView with payment_id lookup. Introduce pending_payment_id field in DeviceSerializer to track unpaid payments.
i7012025-04-08 21:38:43 +05:00
c3abdd8e34
Add has_a_pending_payment field to Device model and update related views for payment handling
i7012025-04-07 22:24:52 +05:00
c127c5d093
Add registered field to CreateDeviceSerializer and enhance BlockDeviceSerializer with reason_for_blocking and blocked_by fields
i7012025-04-06 22:40:07 +05:00
b415d8f35b
Add BlockDeviceSerializer and DeviceBlockAPIView for blocking devices
i7012025-04-06 21:38:41 +05:00
a8adddfda4
Add authorization check in UpdateUserWalletView to restrict updates to the user's own wallet
i7012025-04-05 22:50:14 +05:00
2368ff408a
Add number_of_months field to UpdatePaymentSerializer and implement validation in UpdatePaymentAPIView
i7012025-04-05 22:38:08 +05:00
b87dcfaf26
Add UpdateUserWalletView and CustomUserByWalletBalanceSerializer for wallet balance updates
i7012025-04-05 20:53:06 +05:00
d67794df62
Add wallet_balance and mobile fields to CustomUserSerializer
i7012025-04-05 19:08:07 +05:00
93e50b696c
Add PaymentDetailAPIView for retrieving payment details and update URL routing
i7012025-04-05 18:58:12 +05:00
02f680d579
Refactor payment views: rename CreatePaymentView to ListCreatePaymentView, add payment retrieval endpoint, and enhance queryset filtering for user-specific payments.
i7012025-04-05 17:23:18 +05:00
80e388a2a0
Refactor CreatePaymentView to improve device retrieval logic by using filter instead of get_object_or_404, enhancing error handling for non-existent devices.
i7012025-04-05 16:14:28 +05:00
d386c7e37c
Add device existence check in CreatePaymentView to handle invalid device IDs
i7012025-04-05 16:10:24 +05:00
43f9b7ef7c
Enhance User model: add email field with unique constraint, update id_card field to allow null values, and include verified field. Update UserAdmin to display verified field. Improve device listing to filter by logged-in user.
i7012025-03-28 22:25:30 +05:00
ddfbeba2f4
Refactor User model: update mobile field to allow null values, enforce unique id_card, and implement user filtering API endpoint
i7012025-03-26 22:49:11 +05:00
aa69977d63
update mobile field in User model to set default value to 0 and create corresponding migrations
i7012025-03-24 15:29:19 +05:00
7c940c9dd2
remove null true for mobile field
i7012025-03-24 15:27:10 +05:00
d44b2ad6af
add unique mobile number migrations
i7012025-03-24 15:17:42 +05:00
02b6a64674
make user mobile number unique
i7012025-03-24 15:14:49 +05:00
d29e61c7da
revert back to single settings.py file to fix authorization header not reading issue
i7012025-03-24 14:03:23 +05:00
07d93d4e13
remove CSRF_COOKIE_DOMAIN setttings variable for prod
i7012025-03-22 22:47:39 +05:00