32 Commits
Author SHA1 Message Date
i701 19321da0be feat(admin): enhance AdminTopupCreateView to support custom top-up descriptions 2025-07-27 19:55:22 +05:00
i701 ee54386fd5 feat(devices): enhance device naming to include user details and enforce name length limit 2025-07-27 14:59:08 +05:00
i701 b52cd9285a fix(devices): update DeviceBlockAPIView to handle omada_client response correctly 🐛 2025-07-27 14:32:16 +05:00
i701 4aae0064ca fix(views): optimize database queries to solve N+1 problems 🔨🐛 2025-07-25 23:22:35 +05:00
i701 1554829b9a feat(wallet): implement wallet transaction model, views, and serializers for fund management 2025-07-25 14:38:34 +05:00
i701 446ca6653e feat(filters, serializers): add user filtering and enhance user serialization in Payment and Device models 2025-07-24 20:34:50 +05:00
i701 bb2d0348c2 feat(devices): add pending_payment_id field to DeviceSerializer for tracking unpaid payments 2025-07-09 22:06:28 +05:00
i701 e2ede37f4f refactor(devices): update device payment status in background task and remove unused serializer field 🔨 2025-07-09 21:55:33 +05:00
i701 8657435fbf fix(payment): refine unpaid payment query to include status and expiration checks 🐛 2025-07-08 20:53:05 +05:00
i701 ceb30025ee feat(admin): add is_expired field to PaymentAdmin for better payment visibility
feat(admin): include expiry_date in DeviceAdmin for enhanced device management 
2025-07-06 21:23:12 +05:00
i701 bae0882879 refactor(DeviceListCreateAPIView): Update all_devices parameter handling for improved boolean parsing 🔨 2025-06-30 23:21:08 +05:00
i701 708d7c2bec refactor(filters): Enhance user filtering in DeviceFilter to search across multiple user fields 🔨 2025-06-30 22:40:13 +05:00
i701 3d541831c7 refactor(portal-api): Device serializers to include user information and ensure consistent Meta class formatting 🔨 2025-06-30 22:29:27 +05:00
i701 428d9ae0e1 Refactor PaymentFilter to use RangeFilter for amount and number_of_months; add vendor filter to DeviceFilter 2025-06-29 19:28:41 +05:00
i701 7d641e95d7 Enhance DeviceListCreateAPIView to allow admin users to access all devices based on query parameter 2025-06-28 10:25:46 +05:00
i701 39da124214 Refactor device blocking logic in DeviceBlockAPIView to utilize Omada BlockDeviceResponse for blocking in omada first 2025-06-23 23:41:59 +05:00
i701 570cf80019 Refactor Omada class methods for clarity; update device blocking logic in DeviceBlockAPIView and improve user verification error handling 2025-06-23 23:14:40 +05:00
i701 9688635f44 Refactor Omada integration: encapsulate API calls in Omada class, update device management tasks, and enhance device creation tests 2025-06-22 22:55:28 +05:00
i701 69ab87f502 Add is_admin field to User model and update related serializers and views 2025-06-09 13:28:57 +05:00
i701 7e2f6699b1 Refactor imports in admin.py and update MAC address handling in views.py to improve code clarity and error handling 2025-06-08 15:23:18 +05:00
i701 4db9d7fabd Refactor device management: add vendor field, enhance admin display, and improve MAC address handling 2025-06-01 19:27:04 +05:00
i701 20db39ee55 Fix import statement for regex module in MAC address validation 2025-04-25 15:35:57 +05:00
i701 83db42cc60 Refactor and enhance device management and authentication features
- Updated the `reverse_dhivehi_string` function to correct the range for combining characters.
- Added new device handling in the health check view and integrated the `add_new_devices_to_omada` task.
- Improved date handling in `CreateTemporaryUserView` to ensure proper string conversion.
- Enhanced OTP sending by converting mobile numbers to strings.
- Implemented MAC address validation in the `Device` model using a custom validator.
- Removed unnecessary fields from the `CreateDeviceSerializer`.
- Normalized MAC address format in the `DeviceListCreateAPIView`.
- Updated the `djangopasswordlessknox` package to improve code consistency and readability.
- Added migration to enforce MAC address validation in the database.
2025-04-25 14:37:27 +05:00
i701 b8d9f5cf87 Refactor VerifyPaymentView to include checks for payment status and user authorization. Update logging level in settings.py to suppress certain logs during testing. Add comprehensive tests for device management in DeviceAPITestCase. 2025-04-11 17:06:28 +05:00
i701 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. 2025-04-08 21:38:43 +05:00
i701 c3abdd8e34 Add has_a_pending_payment field to Device model and update related views for payment handling 2025-04-07 22:24:52 +05:00
i701 c127c5d093 Add registered field to CreateDeviceSerializer and enhance BlockDeviceSerializer with reason_for_blocking and blocked_by fields 2025-04-06 22:40:07 +05:00
i701 b415d8f35b Add BlockDeviceSerializer and DeviceBlockAPIView for blocking devices 2025-04-06 21:38:41 +05:00
i701 b87dcfaf26 Add UpdateUserWalletView and CustomUserByWalletBalanceSerializer for wallet balance updates 2025-04-05 20:53:06 +05:00
i701 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. 2025-03-28 22:25:30 +05:00
i701 f6f77bb0e5 Add wallet balance to User model and implement Atoll/Island management
- Added `wallet_balance` field to the User model.
- Updated UserAdmin to include `wallet_balance` in the admin interface.
- Created serializers and views for Atoll and Island management.
- Implemented endpoints for listing, creating, and updating Atolls and Islands.
- Enhanced payment processing with UUIDs for Payment and Topup models.
- Added migration files for new fields and constraints.
- Improved error handling and validation in various views.
- Updated email templates for better responsiveness and SEO.
2025-01-20 20:59:16 +05:00
i701 4d0eb86478 Initial commit 2025-01-20 14:33:03 +05:00