summaryrefslogtreecommitdiff
path: root/app/planner/urls.py
blob: 75b60ba3485f381b0fb7ff052cb08edc10375c16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from django.urls import path, re_path

from . import views

app_name = "luxplanner"

urlpatterns = [
    path(
        r'ideas',
        views.CampIdeaListView.as_view(),
        {'page':1}, 
        name="idealist"
    ),
    path(
        r'ideas/add',
        views.PlannerModelFormView.as_view(),
        name="ideacreate"
    ),
    path(
        r'camp/add',
        views.PlannerModelFormView.as_view(),
        name="create"
    ),
    path(
        r'camp/edit/<int:pk>/',
        views.PlannerUpdateView.as_view(),
        name="update"
    ),
    path(
        r'',
        views.PlannerListView.as_view(),
        {'page':1}, 
        name="list"
    ),
]