From 20ea0ead9b288084a50c71164ffdf542d77027d0 Mon Sep 17 00:00:00 2001 From: Jean-Romain Garnier Date: Thu, 23 Apr 2020 16:08:29 +0000 Subject: [PATCH] Add missing parameter to get_history_object call --- logs/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logs/views.py b/logs/views.py index 0bf593c2..4c76158c 100644 --- a/logs/views.py +++ b/logs/views.py @@ -557,7 +557,7 @@ def detailed_history(request, object_name, object_id): raise Http404(_("No model found.")) # Get instance and check permissions - can_view, instance = get_history_object(model, object_name, object_id) + can_view, instance = get_history_object(request, model, object_name, object_id) if not can_view: return instance @@ -603,7 +603,7 @@ def history(request, application, object_name, object_id): except LookupError: raise Http404(_("No model found.")) - can_view, instance = get_history_object(model, object_name, object_id) + can_view, instance = get_history_object(get_history_object, model, object_name, object_id) if not can_view: return instance