fix comparaison objets nuls
This commit is contained in:
parent
94b6c60bec
commit
2b56986712
@ -146,6 +146,7 @@ class DuplicatedEvents(models.Model):
|
||||
|
||||
def get_item_comparison(self, attr):
|
||||
values = [getattr(e, attr) for e in self.get_duplicated()]
|
||||
values = ["" if v is None else v for v in values]
|
||||
|
||||
if len(set([str(v) for v in values])) == 1:
|
||||
return { "similar": True, "key": attr, "values": values[0] }
|
||||
|
Loading…
Reference in New Issue
Block a user