summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-09-11 15:16:06 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-04-16 16:38:32 +0200
commit37a23f20320eea2d6b85fa9bb326846aea68d7ed (patch)
tree80396859180edd9602e8e1ff1a4bec71134e21d6 /ishtar_common/models.py
parent4423f127ac503c8a28d91cd279a20019acb8023a (diff)
downloadIshtar-37a23f20320eea2d6b85fa9bb326846aea68d7ed.tar.bz2
Ishtar-37a23f20320eea2d6b85fa9bb326846aea68d7ed.zip
✨ Pre-import form: modify models - admin
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py6
1 files changed, 6 insertions, 0 deletions
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: