summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
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
commit4d49208aef1e0a0babae8c2ffd231f397f19d513 (patch)
tree98dcb4e9c96101b01b4fd17bcddbd12a1c127377 /ishtar_common/models.py
parentf8d43731beb03c1407f4f8991c0764d980494ef4 (diff)
downloadIshtar-4d49208aef1e0a0babae8c2ffd231f397f19d513.tar.bz2
Ishtar-4d49208aef1e0a0babae8c2ffd231f397f19d513.zip
Fix custom form -> use profile instead of person types
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py5
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", )