diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-03-02 11:23:23 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-03-02 12:44:59 +0100 |
commit | c3ac6de46a5ab6e35c0103456c47accc0f3cb3f9 (patch) | |
tree | 98dcb4e9c96101b01b4fd17bcddbd12a1c127377 /ishtar_common/models.py | |
parent | 6676d09fbd11b26d014b46585db7e6997f4d2abc (diff) | |
download | Ishtar-c3ac6de46a5ab6e35c0103456c47accc0f3cb3f9.tar.bz2 Ishtar-c3ac6de46a5ab6e35c0103456c47accc0f3cb3f9.zip |
Fix custom form -> use profile instead of person types
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 5 |
1 files changed, 4 insertions, 1 deletions
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", ) |