kumify/mood/urls.py

19 lines
1.1 KiB
Python
Raw Normal View History

2020-12-27 17:49:54 +00:00
from .views import StatusListView, StatusViewView, StatusDeleteView, StatusEditView, StatusCreateView, ActivityListView, ActivityEditView, ActivityCreateView, ActivityDeleteView, MoodListView, MoodEditView
from django.urls import path, include
app_name = "mood"
urlpatterns = [
path('', StatusListView.as_view(), name="status_list"),
path('status/<int:id>/view/', StatusViewView.as_view(), name="status_view"),
path('status/<int:id>/edit/', StatusEditView.as_view(), name="status_edit"),
path('status/<int:id>/delete/', StatusDeleteView.as_view(), name="status_delete"),
path('status/new/', StatusCreateView.as_view(), name="status_create"),
path('activity/', ActivityListView.as_view(), name="activity_list"),
path('activity/<int:id>/edit/', ActivityEditView.as_view(), name="activity_edit"),
path('activity/new/', ActivityCreateView.as_view(), name="activity_create"),
path('activity/<int:id>/delete/', ActivityDeleteView.as_view(), name="activity_delete"),
path('mood/', MoodListView.as_view(), name="mood_list"),
path('mood/<int:id>/edit/', MoodEditView.as_view(), name="mood_edit"),
]