8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 07:02:26 +00:00

Improve description for events with None objects

This commit is contained in:
Jean-Romain Garnier 2020-04-25 00:13:00 +02:00 committed by Gabriel Detraz
parent 125ffbbd23
commit 4b6f5a1463

View file

@ -422,7 +422,7 @@ class VersionAction(HistoryEvent):
self.version = version self.version = version
def name(self): def name(self):
return "{} {}".format(self.model_name().title(), self.version.object_repr) return self.version._object_cache or self.version.object_repr
def application(self): def application(self):
return self.version.content_type.app_label return self.version.content_type.app_label