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(),
|
||||
name="plan",
|
||||
),
|
||||
path(
|
||||
pgettext_lazy("url part", "<slug:gov>/plan/<slug:plan>"),
|
||||
GovPlanDetailView.as_view(),
|
||||
),
|
||||
path(
|
||||
pgettext_lazy("url part", "<slug:gov>/plan/<slug:plan>/propose-update/"),
|
||||
GovPlanProposeUpdateView.as_view(),
|
||||
|
|
@ -41,9 +45,17 @@ urlpatterns = [
|
|||
GovPlanProposeUpdateView.as_view(),
|
||||
name="propose_planupdate",
|
||||
),
|
||||
path(
|
||||
pgettext_lazy("url part", "<slug:gov>/vorhaben/<slug:plan>"),
|
||||
GovPlanDetailView.as_view(),
|
||||
),
|
||||
path(
|
||||
pgettext_lazy("url part", "<slug:gov>/<slug:section>/"),
|
||||
GovPlanSectionDetailView.as_view(),
|
||||
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