Add find medium link in explore dropdown

This commit is contained in:
Yohann D'ANELLO 2020-09-25 11:20:53 +02:00
parent a06ae5c9b9
commit 57659acc93
2 changed files with 2 additions and 1 deletions

View File

@ -11,5 +11,5 @@ app_name = 'media'
urlpatterns = [
url(r'^retour_emprunt/(?P<empruntid>[0-9]+)$', views.retour_emprunt,
name='retour-emprunt'),
path('find/', views.FindMediumView.as_view()),
path('find/', views.FindMediumView.as_view(), name="find"),
]

View File

@ -30,6 +30,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
<span class="dropdown">
<a href="{% url 'admin:index' %}">{% trans 'Explore database' %}</a>
<span class="dropdown-content">
<a href="{% url "media:find" %}">Recherche ...</a>
{% for app in available_apps %}
{% for model in app.models %}
{% if model.admin_url %}