8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-04 17:06:27 +00:00

Fix RelatedHistory init in detailed history

This commit is contained in:
Jean-Romain Garnier 2020-04-25 12:40:10 +02:00
parent 4190f4f39e
commit 2b18d438a2

View file

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