Fix collision de noms
This commit is contained in:
parent
5ef9358b28
commit
e5c075656c
@ -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>",
|
||||||
|
@ -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")
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user