Use search views

This commit is contained in:
Tom Hubrecht 2021-07-11 21:20:10 +02:00
parent d9111cc8cb
commit 02f7b3c8c3

View file

@ -2,7 +2,7 @@ from tastypie.api import Api
from django.urls import include, path
from . import api, views
from . import api, views, views_search
v1_api = Api(api_name="v1")
v1_api.register(api.LieuResource())
@ -56,9 +56,13 @@ urlpatterns = [
views.DefinirMotDePasse.as_view(),
name="mdp_edit",
),
path("recherche/", views.recherche, name="recherche"),
path("recherche/resultats/", views.recherche_resultats, name="recherche_resultats"),
path("recherche/items/", views.stage_items, name="stage_items"),
path("recherche/", views_search.recherche, name="recherche"),
path(
"recherche/resultats/",
views_search.recherche_resultats,
name="recherche_resultats",
),
path("recherche/items/", views_search.stage_items, name="stage_items"),
path("feedback/", views.feedback, name="feedback"),
path("moderation/", views.statistiques, name="moderation"),
path("api/", include(v1_api.urls)),