diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-10-21 19:41:49 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-02-19 14:43:48 +0100 |
commit | 0b8933306e071f626af0ff2250bca962c1a03090 (patch) | |
tree | 9022a85264942c5bf5fb6db8ffaab01844feced6 /ishtar_common/models.py | |
parent | c93dd3812c53d21ab8517dc7af72e1d4b70a1b04 (diff) | |
download | Ishtar-0b8933306e071f626af0ff2250bca962c1a03090.tar.bz2 Ishtar-0b8933306e071f626af0ff2250bca962c1a03090.zip |
🗃️ permissions refactoring: add permission request model - link between main item and ishtar users
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 58 |
1 files changed, 31 insertions, 27 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index b1f226088..148843fd4 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -143,45 +143,45 @@ from ishtar_common.utils import ( ) from ishtar_common.models_common import ( - GeneralType, - HierarchicalType, - OrderedHierarchicalType, - OrderedType, + Address, BaseHistorizedItem, - LightHistorizedItem, - HistoricalRecords, - FullSearch, - SearchAltName, - OwnPerms, Cached, - Imported, - Address, - post_save_cache, - TemplateItem, - SpatialReferenceSystem, + CachedGen, + CompleteIdentifierItem, DashboardFormItem, - document_attached_changed, - SearchAltName, + Department, + DocumentItem, DynamicRequest, - GeoItem, + document_attached_changed, + FullSearch, + GeneralType, + GeoBufferType, GeoDataType, + GeoItem, GeoOriginType, GeoProviderType, GeoVectorData, - GeoBufferType, - CompleteIdentifierItem, - SearchVectorConfig, - DocumentItem, - QuickAction, + HierarchicalType, + HistoricalRecords, + ImageContainerModel, + Imported, + LightHistorizedItem, MainItem, Merge, + OrderedHierarchicalType, + OrderedType, + OwnPerms, + PermissionRequest, + post_save_cache, + QuickAction, + SearchAltName, + SearchVectorConfig, + SpatialReferenceSystem, + TemplateItem, ShortMenuItem, - Town, - ImageContainerModel, - StatisticItem, - CachedGen, - Department, State, + StatisticItem, + Town, ) __all__ = [ @@ -3436,6 +3436,10 @@ class GDPRLog(models.Model): class ProfileType(GeneralType): groups = models.ManyToManyField(Group, verbose_name=_("Groups"), blank=True) + permission_requests = models.ManyToManyField( + PermissionRequest, verbose_name=_("Permission request"), blank=True, + related_name="profile_types" + ) class Meta: verbose_name = _("Profile type") |