diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-03-21 17:55:48 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-03-27 17:53:27 +0200 |
commit | 831420a873095cf7682143a3a18e1499dc93a76e (patch) | |
tree | fddb75df476ad2322feaf0395d25822d8bf25390 /ishtar_common/models.py | |
parent | 9e83c044636aee77c2f8f149ba2356674b071f8f (diff) | |
download | Ishtar-831420a873095cf7682143a3a18e1499dc93a76e.tar.bz2 Ishtar-831420a873095cf7682143a3a18e1499dc93a76e.zip |
Step by step import: present object to be created, updated, etc. (refs #3975)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index b634d93d7..883c12ab9 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1201,6 +1201,10 @@ class BaseHistorizedItem(FullSearch, Imported, JsonData, FixAssociated): class Meta: abstract = True + @classmethod + def get_verbose_name(cls): + return cls._meta.verbose_name + def update_external_id(self, save=False): if not self.EXTERNAL_ID_KEY or ( self.external_id and not self.auto_external_id): |