Add GovernmentPlanSection

This commit is contained in:
Stefan Wehrmeyer 2022-03-14 11:47:48 +01:00
parent 9f983a1723
commit 947426a3b3
7 changed files with 214 additions and 10 deletions

View file

@ -2,7 +2,7 @@ from django.urls import path
from django.utils.translation import pgettext_lazy
from .admin import govplan_admin_site
from .views import GovPlanDetailView
from .views import GovPlanDetailView, GovPlanSectionDetailView
app_name = "govplan"
@ -13,4 +13,9 @@ urlpatterns = [
GovPlanDetailView.as_view(),
name="plan",
),
path(
pgettext_lazy("url part", "<slug:gov>/<slug:section>/"),
GovPlanSectionDetailView.as_view(),
name="section",
),
]