From 02f7b3c8c3472294d0e079ae786f988c5b5760c6 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Sun, 11 Jul 2021 21:20:10 +0200 Subject: [PATCH] Use search views --- avisstage/urls.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/avisstage/urls.py b/avisstage/urls.py index 97647e7..c89c6e2 100644 --- a/avisstage/urls.py +++ b/avisstage/urls.py @@ -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)),