Implement wallet model and CRUD
This commit is contained in:
32
app/urls.py
32
app/urls.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user