verwaltungstracker/froide_govplan/urls.py
Karl Engelhardt 8b9710a452 Revert " Add shortlinks for govplan updates"
This reverts commit fc64045cde.
2022-04-28 16:10:26 +02:00

42 lines
1.1 KiB
Python

from django.urls import path
from django.utils.translation import pgettext_lazy
from .views import (
GovPlanDetailOGView,
GovPlanDetailView,
GovPlanProposeUpdateView,
GovPlanSectionDetailOGView,
GovPlanSectionDetailView,
search,
)
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",
),
]