25 lines
568 B
Python
25 lines
568 B
Python
from django.urls import path
|
|
from . import views
|
|
from django.views.generic import TemplateView
|
|
|
|
|
|
app_name = 'manage_notifications'
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"notification/add/",
|
|
views.PushNotificationsCreateOrUpdateView.as_view(),
|
|
name="notification_add",
|
|
),
|
|
path(
|
|
"notification/edit/<int:pk>/",
|
|
views.PushNotificationsCreateOrUpdateView.as_view(),
|
|
name="notification_edit",
|
|
),
|
|
path(
|
|
"notification/list/",
|
|
views.PushNotificationView.as_view(),
|
|
name="notification_list",
|
|
),
|
|
]
|