From 17704fce9cca8d1867d8c01eaa0d173a80bd02a1 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Tue, 17 Sep 2019 19:09:31 +0200 Subject: [PATCH] Fix can_view extra arg for logs --- logs/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logs/views.py b/logs/views.py index 28205063..5d8cf1a9 100644 --- a/logs/views.py +++ b/logs/views.py @@ -521,7 +521,7 @@ def history(request, application, object_name, object_id): 'users:profil', kwargs={'userid': str(request.user.id)} )) - can, msg = instance.can_view(request.user) + can, msg, _extra_msg = instance.can_view(request.user) if not can: messages.error(request, msg or _("You don't have the right to access this menu.")) return redirect(reverse(