Add shortlinks for govplan updates

This commit is contained in:
Karl Engelhardt 2022-04-28 16:01:29 +02:00
parent da21081be0
commit fc64045cde
3 changed files with 26 additions and 1 deletions

View file

@ -8,6 +8,7 @@ from .views import (
GovPlanSectionDetailOGView,
GovPlanSectionDetailView,
search,
update_shortlink,
)
app_name = "govplan"
@ -39,4 +40,9 @@ urlpatterns = [
GovPlanSectionDetailOGView.as_view(),
name="section_og",
),
path(
pgettext_lazy("url part", "<slug:gov>/u/<int:obj_id>/"),
update_shortlink,
name="planupdate_shortlink",
),
]