Add basic search for govplans
This commit is contained in:
parent
be6717c2a0
commit
2b6a1805dd
4 changed files with 85 additions and 2 deletions
|
|
@ -2,12 +2,13 @@ from django.urls import path
|
|||
from django.utils.translation import pgettext_lazy
|
||||
|
||||
from .admin import govplan_admin_site
|
||||
from .views import GovPlanDetailView, GovPlanSectionDetailView
|
||||
from .views import GovPlanDetailView, GovPlanSectionDetailView, search
|
||||
|
||||
app_name = "govplan"
|
||||
|
||||
urlpatterns = [
|
||||
path("admin/", govplan_admin_site.urls),
|
||||
path("search/", search, name="search"),
|
||||
path(
|
||||
pgettext_lazy("url part", "<slug:gov>/plan/<slug:plan>/"),
|
||||
GovPlanDetailView.as_view(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue