From 1b47bd5efbae67bfb64c2c70143c856f856d186b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 9 May 2024 12:59:31 +0200 Subject: 🐛 account search tables: display profile type instead of profile name (refs #5618) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 61595a624..00faab64d 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -3084,7 +3084,7 @@ class Person(Address, Merge, OwnPerms, ValueGetter, MainItem): @property def profiles_list(self): - return ", ".join(str(p) for p in self.profiles.all()) + return ", ".join(set([str(p.profile_type) for p in self.profiles.all()])) def generate_merge_key(self): if self.name and self.name.strip(): -- cgit v1.2.3