48 lines
1.3 KiB
Python
48 lines
1.3 KiB
Python
from django.urls import path
|
|
from django.utils.translation import pgettext_lazy
|
|
|
|
from .views import (
|
|
GovPlanDetailOGView,
|
|
GovPlanDetailView,
|
|
GovPlanProposeUpdateView,
|
|
GovPlanSectionDetailOGView,
|
|
GovPlanSectionDetailView,
|
|
search,
|
|
update_shortlink,
|
|
)
|
|
|
|
app_name = "govplan"
|
|
|
|
urlpatterns = [
|
|
path("search/", search, name="search"),
|
|
path(
|
|
pgettext_lazy("url part", "<slug:gov>/plan/<slug:plan>/"),
|
|
GovPlanDetailView.as_view(),
|
|
name="plan",
|
|
),
|
|
path(
|
|
pgettext_lazy("url part", "<slug:gov>/plan/<slug:plan>/_og/"),
|
|
GovPlanDetailOGView.as_view(),
|
|
name="plan_og",
|
|
),
|
|
path(
|
|
pgettext_lazy("url part", "<slug:gov>/plan/<slug:plan>/propose-update/"),
|
|
GovPlanProposeUpdateView.as_view(),
|
|
name="propose_planupdate",
|
|
),
|
|
path(
|
|
pgettext_lazy("url part", "<slug:gov>/<slug:section>/"),
|
|
GovPlanSectionDetailView.as_view(),
|
|
name="section",
|
|
),
|
|
path(
|
|
pgettext_lazy("url part", "<slug:gov>/<slug:section>/_og/"),
|
|
GovPlanSectionDetailOGView.as_view(),
|
|
name="section_og",
|
|
),
|
|
path(
|
|
pgettext_lazy("url part", "<slug:gov>/u/<int:obj_id>/"),
|
|
update_shortlink,
|
|
name="planupdate_shortlink",
|
|
),
|
|
]
|