mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 07:02:26 +00:00
Fix RelatedHistory init in detailed history
This commit is contained in:
parent
c43c532822
commit
7549cc32aa
1 changed files with 3 additions and 3 deletions
|
@ -650,8 +650,8 @@ class UserHistory(History):
|
||||||
)
|
)
|
||||||
self.related = [RelatedHistory(
|
self.related = [RelatedHistory(
|
||||||
m.field_dict["name"] or _("None"),
|
m.field_dict["name"] or _("None"),
|
||||||
"machines"
|
"machines",
|
||||||
"Machine",
|
"machine",
|
||||||
m.field_dict["id"]) for m in self.related]
|
m.field_dict["id"]) for m in self.related]
|
||||||
self.related = list(dict.fromkeys(self.related))
|
self.related = list(dict.fromkeys(self.related))
|
||||||
|
|
||||||
|
@ -747,7 +747,7 @@ class MachineHistory(History):
|
||||||
self.related = [RelatedHistory(
|
self.related = [RelatedHistory(
|
||||||
i.field_dict["mac_address"] or _("None"),
|
i.field_dict["mac_address"] or _("None"),
|
||||||
"machines",
|
"machines",
|
||||||
"Interface",
|
"interface",
|
||||||
i.field_dict["id"]) for i in self.related]
|
i.field_dict["id"]) for i in self.related]
|
||||||
self.related = list(dict.fromkeys(self.related))
|
self.related = list(dict.fromkeys(self.related))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue