From e5c075656cc4148ac5735af99e8ae30cd9b9ea1d Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Thu, 12 Dec 2024 22:13:30 +0100 Subject: [PATCH] Fix collision de noms --- src/agenda_culturel/urls.py | 2 +- src/agenda_culturel/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agenda_culturel/urls.py b/src/agenda_culturel/urls.py index 925f8f7..efc9cb4 100644 --- a/src/agenda_culturel/urls.py +++ b/src/agenda_culturel/urls.py @@ -98,7 +98,7 @@ urlpatterns = [ path("a-propos", about, name="about"), path("merci", thank_you, name="thank_you"), path("contact", MessageCreateView.as_view(), name="contact"), - path("messages", messages, name="messages"), + path("messages", view_messages, name="messages"), path("messages/spams/delete", delete_cm_spam, name="delete_cm_spam"), path( "message/", diff --git a/src/agenda_culturel/views.py b/src/agenda_culturel/views.py index 823c7b2..8446a82 100644 --- a/src/agenda_culturel/views.py +++ b/src/agenda_culturel/views.py @@ -941,7 +941,7 @@ def recent(request): @login_required(login_url="/accounts/login/") @permission_required("agenda_culturel.view_message") -def messages(request): +def view_messages(request): filter = MessagesFilterAdmin( request.GET, queryset=Message.objects.all().order_by("-date") )