summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
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
commit951b9e9ba349459f5b1abbdd092d5910c346cd9f (patch)
treefddb75df476ad2322feaf0395d25822d8bf25390 /ishtar_common/models.py
parent54daa385a241ad272abe9e06a63a0da36ff17749 (diff)
downloadIshtar-951b9e9ba349459f5b1abbdd092d5910c346cd9f.tar.bz2
Ishtar-951b9e9ba349459f5b1abbdd092d5910c346cd9f.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.py4
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):