From 57659acc93e8e9929d47f4cccf7504a29db757b6 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 25 Sep 2020 11:20:53 +0200 Subject: [PATCH] Add find medium link in explore dropdown --- media/urls.py | 2 +- theme/templates/admin/base_site.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/media/urls.py b/media/urls.py index 348189a..37ec413 100644 --- a/media/urls.py +++ b/media/urls.py @@ -11,5 +11,5 @@ app_name = 'media' urlpatterns = [ url(r'^retour_emprunt/(?P[0-9]+)$', views.retour_emprunt, name='retour-emprunt'), - path('find/', views.FindMediumView.as_view()), + path('find/', views.FindMediumView.as_view(), name="find"), ] diff --git a/theme/templates/admin/base_site.html b/theme/templates/admin/base_site.html index acec203..69aebab 100644 --- a/theme/templates/admin/base_site.html +++ b/theme/templates/admin/base_site.html @@ -30,6 +30,7 @@ SPDX-License-Identifier: GPL-3.0-or-later {% trans 'Explore database' %} + Recherche ... {% for app in available_apps %} {% for model in app.models %} {% if model.admin_url %}