From 37a23f20320eea2d6b85fa9bb326846aea68d7ed Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 11 Sep 2023 15:16:06 +0200 Subject: ✨ Pre-import form: modify models - admin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 68b571af4..a38fc3c3e 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -124,6 +124,7 @@ from ishtar_common.models_imports import ( TargetKeyGroup, ValueFormater, ItemKey, + ImportColumnValue, ) from ishtar_common.utils import ( @@ -175,6 +176,7 @@ from ishtar_common.models_common import ( ) __all__ = [ + "ImportColumnValue", "ImporterModel", "ImporterType", "ImporterGroup", @@ -3466,6 +3468,10 @@ class IshtarUser(FullSearch): def class_verbose_name(cls): return cls._meta.verbose_name + @property + def is_superuser(self) -> bool: + return self.user_ptr.is_superuser + def show_field_number(self, update=False): cache_key, value = get_cache(self.__class__, ["show_field_number"]) if not update and value is not None: -- cgit v1.2.3