From c3ac6de46a5ab6e35c0103456c47accc0f3cb3f9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 2 Mar 2021 11:23:23 +0100 Subject: Fix custom form -> use profile instead of person types --- ishtar_common/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 4662bcc35..0e5a39c1f 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1098,7 +1098,10 @@ class CustomForm(models.Model): help_text=_("Apply this form to all users. If set to True, selecting " "user and user type is useless.")) users = models.ManyToManyField('IshtarUser', blank=True) - user_types = models.ManyToManyField('PersonType', blank=True) + user_types = models.ManyToManyField( + 'PersonType', blank=True, + help_text=_("Deprecated - use profile types")) + profile_types = models.ManyToManyField("ProfileType", blank=True) objects = CustomFormManager() SERIALIZATION_EXCLUDE = ("users", ) -- cgit v1.2.3