Fix collision de noms

This commit is contained in:
Jean-Marie Favreau 2024-12-12 22:13:30 +01:00
parent 5ef9358b28
commit e5c075656c
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ urlpatterns = [
path("a-propos", about, name="about"), path("a-propos", about, name="about"),
path("merci", thank_you, name="thank_you"), path("merci", thank_you, name="thank_you"),
path("contact", MessageCreateView.as_view(), name="contact"), 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("messages/spams/delete", delete_cm_spam, name="delete_cm_spam"),
path( path(
"message/<int:pk>", "message/<int:pk>",

View File

@ -941,7 +941,7 @@ def recent(request):
@login_required(login_url="/accounts/login/") @login_required(login_url="/accounts/login/")
@permission_required("agenda_culturel.view_message") @permission_required("agenda_culturel.view_message")
def messages(request): def view_messages(request):
filter = MessagesFilterAdmin( filter = MessagesFilterAdmin(
request.GET, queryset=Message.objects.all().order_by("-date") request.GET, queryset=Message.objects.all().order_by("-date")
) )