diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-09-11 15:16:06 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-02-05 10:51:51 +0100 |
commit | ffb0f3de1fc0415c20a4e642d459ab7baaa74923 (patch) | |
tree | 27fc80520703b6a0767dd24006f3b05f4bad45e6 /ishtar_common/models.py | |
parent | 8687f3457c9626c455b23bd3495b87b86e0b5457 (diff) | |
download | Ishtar-ffb0f3de1fc0415c20a4e642d459ab7baaa74923.tar.bz2 Ishtar-ffb0f3de1fc0415c20a4e642d459ab7baaa74923.zip |
✨ Pre-import form: modify models - admin
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 6 |
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: |