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