8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-22 15:03:45 +00:00

Fix backward compatibility for logs view

This commit is contained in:
Jean-Romain Garnier 2020-04-23 16:35:22 +00:00 committed by Supelec Rezo Rennes
parent 3efedf6bcb
commit 1f5fa4b43e
2 changed files with 6 additions and 6 deletions

View file

@ -37,6 +37,11 @@ urlpatterns = [
views.revert_action,
name="revert-action",
),
url(
r"(?P<application>\w+)/(?P<object_name>\w+)/(?P<object_id>[0-9]+)$",
views.history,
name="history",
),
url(
r"(?P<object_name>\w+)/(?P<object_id>[0-9]+)$",
views.detailed_history,
@ -46,10 +51,5 @@ urlpatterns = [
url(r"^stats_models/$", views.stats_models, name="stats-models"),
url(r"^stats_users/$", views.stats_users, name="stats-users"),
url(r"^stats_actions/$", views.stats_actions, name="stats-actions"),
url(
r"(?P<application>\w+)/(?P<object_name>\w+)/(?P<object_id>[0-9]+)$",
views.history,
name="history",
),
url(r"^stats_search_machine/$", views.stats_search_machine_history, name="stats-search-machine"),
]

View file

@ -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(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