support project urls without trailing slash
This commit is contained in:
parent
433d030539
commit
a5e2fee7a9
1 changed files with 12 additions and 0 deletions
|
|
@ -31,6 +31,10 @@ urlpatterns = [
|
||||||
GovPlanDetailView.as_view(),
|
GovPlanDetailView.as_view(),
|
||||||
name="plan",
|
name="plan",
|
||||||
),
|
),
|
||||||
|
path(
|
||||||
|
pgettext_lazy("url part", "<slug:gov>/plan/<slug:plan>"),
|
||||||
|
GovPlanDetailView.as_view(),
|
||||||
|
),
|
||||||
path(
|
path(
|
||||||
pgettext_lazy("url part", "<slug:gov>/plan/<slug:plan>/propose-update/"),
|
pgettext_lazy("url part", "<slug:gov>/plan/<slug:plan>/propose-update/"),
|
||||||
GovPlanProposeUpdateView.as_view(),
|
GovPlanProposeUpdateView.as_view(),
|
||||||
|
|
@ -41,9 +45,17 @@ urlpatterns = [
|
||||||
GovPlanProposeUpdateView.as_view(),
|
GovPlanProposeUpdateView.as_view(),
|
||||||
name="propose_planupdate",
|
name="propose_planupdate",
|
||||||
),
|
),
|
||||||
|
path(
|
||||||
|
pgettext_lazy("url part", "<slug:gov>/vorhaben/<slug:plan>"),
|
||||||
|
GovPlanDetailView.as_view(),
|
||||||
|
),
|
||||||
path(
|
path(
|
||||||
pgettext_lazy("url part", "<slug:gov>/<slug:section>/"),
|
pgettext_lazy("url part", "<slug:gov>/<slug:section>/"),
|
||||||
GovPlanSectionDetailView.as_view(),
|
GovPlanSectionDetailView.as_view(),
|
||||||
name="section",
|
name="section",
|
||||||
),
|
),
|
||||||
|
path(
|
||||||
|
pgettext_lazy("url part", "<slug:gov>/<slug:section>"),
|
||||||
|
GovPlanSectionDetailView.as_view(),
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue