From 5b04cd656e01969646f3398ee89a1b3bb550cb54 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 6 Apr 2023 15:24:09 +0200 Subject: Fix permissions for treatments requests (refs #5441) --- ishtar_common/wizards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common') diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index 72cd4db45..030bb4af2 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -2078,7 +2078,7 @@ class AccountWizard(Wizard): profile.profile_type = profile_type profile.save() else: - profile = models.UserProfile.objects.create( + profile, __ = models.UserProfile.objects.get_or_create( profile_type=profile_type, person=person, name=name ) area_pks = data.get("area", None) -- cgit v1.2.3