mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
Split SubscriptionForm
into SubscriptionNewUserForm
and SubscriptionExistingUserForm
This commit is contained in:
@ -15,10 +15,31 @@
|
||||
|
||||
from django.urls import path
|
||||
|
||||
from subscription.views import NewSubscription, SubscriptionsStatsView
|
||||
from subscription.views import (
|
||||
CreateSubscriptionExistingUserFragment,
|
||||
CreateSubscriptionNewUserFragment,
|
||||
NewSubscription,
|
||||
SubscriptionCreatedFragment,
|
||||
SubscriptionsStatsView,
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
# Subscription views
|
||||
path("", NewSubscription.as_view(), name="subscription"),
|
||||
path(
|
||||
"fragment/existing-user/",
|
||||
CreateSubscriptionExistingUserFragment.as_view(),
|
||||
name="fragment-existing-user",
|
||||
),
|
||||
path(
|
||||
"fragment/new-user/",
|
||||
CreateSubscriptionNewUserFragment.as_view(),
|
||||
name="fragment-new-user",
|
||||
),
|
||||
path(
|
||||
"fragment/<int:subscription_id>/creation-success",
|
||||
SubscriptionCreatedFragment.as_view(),
|
||||
name="creation-success",
|
||||
),
|
||||
path("stats/", SubscriptionsStatsView.as_view(), name="stats"),
|
||||
]
|
||||
|
Reference in New Issue
Block a user