Implement wallet model and CRUD

This commit is contained in:
2023-03-17 18:37:38 +00:00
parent 6e6b23da63
commit 0723f14c53
9 changed files with 256 additions and 19 deletions

View File

@@ -20,7 +20,16 @@ from django.contrib.auth.views import LogoutView
from django.urls import include, path
from two_factor.urls import urlpatterns as tf_urls
from core.views import ads, aggregators, banks, base, notifications, platforms, profit
from core.views import (
ads,
aggregators,
banks,
base,
notifications,
platforms,
profit,
wallets,
)
# from core.views.stripe_callbacks import Callback
@@ -200,4 +209,25 @@ urlpatterns = [
profit.Profit.as_view(),
name="profit",
),
# Wallets
path(
"wallets/<str:type>/",
wallets.WalletList.as_view(),
name="wallets",
),
path(
"wallets/<str:type>/create/",
wallets.WalletCreate.as_view(),
name="wallet_create",
),
path(
"wallets/<str:type>/update/<str:pk>/",
wallets.WalletUpdate.as_view(),
name="wallet_update",
),
path(
"wallets/<str:type>/delete/<str:pk>/",
wallets.WalletDelete.as_view(),
name="wallet_delete",
),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)