mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 07:23:46 +00:00
Add missing parameter to get_history_object call
This commit is contained in:
parent
bb901a4c3f
commit
20ea0ead9b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue