summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-10-22 12:45:25 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-02-19 14:43:48 +0100
commitbe063a7032971db7c00a160595e69e1e67dd2c9f (patch)
tree2c18bedabd6a1afaafead68cf71b92dd2c439388 /ishtar_common/models.py
parent0b8933306e071f626af0ff2250bca962c1a03090 (diff)
downloadIshtar-be063a7032971db7c00a160595e69e1e67dd2c9f.tar.bz2
Ishtar-be063a7032971db7c00a160595e69e1e67dd2c9f.zip
✨ permissions refactoring: adapt admin pages
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 148843fd4..8fcb9edbb 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -3429,7 +3429,9 @@ class GDPRLog(models.Model):
values = values[start:end]
for pk in values:
if pk:
- gdpr_persons.append(cls.persons.through(gdprperson_id=pk, gdprlog_id=log.pk))
+ gdpr_persons.append(
+ cls.persons.through(gdprperson_id=pk, gdprlog_id=log.pk)
+ )
if gdpr_persons:
cls.persons.through.objects.bulk_create(gdpr_persons)
@@ -3437,7 +3439,7 @@ 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,
+ PermissionRequest, verbose_name=_("Permissions requests"), blank=True,
related_name="profile_types"
)
@@ -3445,7 +3447,7 @@ class ProfileType(GeneralType):
verbose_name = _("Profile type")
verbose_name_plural = _("Profile types")
ordering = ("label",)
- ADMIN_SECTION = _("Directory")
+ ADMIN_SECTION = _("Account")
post_save.connect(post_save_cache, sender=ProfileType)
@@ -3457,7 +3459,7 @@ class ProfileTypeSummary(ProfileType):
proxy = True
verbose_name = _("Profile type summary")
verbose_name_plural = _("Profile types summary")
- ADMIN_SECTION = _("Directory")
+ ADMIN_SECTION = _("Account")
class UserProfile(models.Model):
@@ -3494,7 +3496,7 @@ class UserProfile(models.Model):
verbose_name = _("User profile")
verbose_name_plural = _("User profiles")
unique_together = (("name", "profile_type", "person"),)
- ADMIN_SECTION = _("Directory")
+ ADMIN_SECTION = _("Account")
def __str__(self):
lbl = self.name or str(self.profile_type)
@@ -3699,7 +3701,7 @@ class IshtarUser(FullSearch):
verbose_name = _("Ishtar user")
verbose_name_plural = _("Ishtar users")
ordering = ("person",)
- ADMIN_SECTION = _("Directory")
+ ADMIN_SECTION = _("Account")
def __str__(self):
return str(self.person)