mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-28 09:50:05 +00:00
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.
This commit is contained in:
17
api/urls.py
17
api/urls.py
@ -11,6 +11,10 @@ from .views import (
|
||||
UserDetailAPIView,
|
||||
healthcheck,
|
||||
test_email,
|
||||
ListCreateAtollView,
|
||||
RetrieveUpdateDestroyAtollView,
|
||||
ListCreateIslandView,
|
||||
RetrieveUpdateDestroyIslandView,
|
||||
)
|
||||
|
||||
|
||||
@ -26,5 +30,16 @@ urlpatterns = [
|
||||
path("users/<int:pk>/", UserDetailAPIView.as_view(), name="user-detail"),
|
||||
path("healthcheck/", healthcheck, name="healthcheck"),
|
||||
path("test/", test_email, name="testemail"),
|
||||
|
||||
path("atolls/", ListCreateAtollView.as_view(), name="atolls"),
|
||||
path(
|
||||
"atolls/<int:pk>/",
|
||||
RetrieveUpdateDestroyAtollView.as_view(),
|
||||
name="atoll-detail",
|
||||
),
|
||||
path("islands/", ListCreateIslandView.as_view(), name="islands"),
|
||||
path(
|
||||
"islands/<int:pk>/",
|
||||
RetrieveUpdateDestroyIslandView.as_view(),
|
||||
name="island-detail",
|
||||
),
|
||||
]
|
||||
|
Reference in New Issue
Block a user