From 7549cc32aa5873793b607a2221f877525a74aa1f Mon Sep 17 00:00:00 2001 From: Jean-Romain Garnier Date: Sat, 25 Apr 2020 12:40:10 +0200 Subject: [PATCH] Fix RelatedHistory init in detailed history --- logs/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/logs/models.py b/logs/models.py index 112d536f..3f42e6e1 100644 --- a/logs/models.py +++ b/logs/models.py @@ -650,8 +650,8 @@ class UserHistory(History): ) self.related = [RelatedHistory( m.field_dict["name"] or _("None"), - "machines" - "Machine", + "machines", + "machine", m.field_dict["id"]) for m in self.related] self.related = list(dict.fromkeys(self.related)) @@ -747,7 +747,7 @@ class MachineHistory(History): self.related = [RelatedHistory( i.field_dict["mac_address"] or _("None"), "machines", - "Interface", + "interface", i.field_dict["id"]) for i in self.related] self.related = list(dict.fromkeys(self.related))