mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-24 12:23:11 +00:00
Improve description for events with None objects
This commit is contained in:
parent
530d5dc6f1
commit
3031c116cc
1 changed files with 1 additions and 1 deletions
|
@ -422,7 +422,7 @@ class VersionAction(HistoryEvent):
|
|||
self.version = version
|
||||
|
||||
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):
|
||||
return self.version.content_type.app_label
|
||||
|
|
Loading…
Reference in a new issue