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
commitc3ac6de46a5ab6e35c0103456c47accc0f3cb3f9 (patch)
tree98dcb4e9c96101b01b4fd17bcddbd12a1c127377 /ishtar_common/models.py
parent6676d09fbd11b26d014b46585db7e6997f4d2abc (diff)
downloadIshtar-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.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", )