From 831420a873095cf7682143a3a18e1499dc93a76e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 21 Mar 2018 17:55:48 +0100 Subject: Step by step import: present object to be created, updated, etc. (refs #3975) --- ishtar_common/models.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ishtar_common/models.py') 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): -- cgit v1.2.3