summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-11-21 10:46:58 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-11-21 10:46:58 +0100
commit6a3c8c3ff340110960bf64dbfc31e526243f6616 (patch)
tree7fe4800634a6079854d7ab10c782c79fce24ea10 /ishtar_common/models.py
parente0a1e5b8cc4e85895176d42bc0da0422eeabf70a (diff)
downloadIshtar-6a3c8c3ff340110960bf64dbfc31e526243f6616.tar.bz2
Ishtar-6a3c8c3ff340110960bf64dbfc31e526243f6616.zip
Custom forms: disable completly a form
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index c888e87fd..b0751f661 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -1635,6 +1635,10 @@ class CustomForm(models.Model):
name = models.CharField(_(u"Name"), max_length=250)
form = models.CharField(_(u"Form"), max_length=250)
available = models.BooleanField(_(u"Available"), default=True)
+ enabled = models.BooleanField(
+ _(u"Enable this form"), default=True,
+ help_text=_(u"Disable with caution: disabling a form with mandatory "
+ u"fields may lead to database errors."))
apply_to_all = models.BooleanField(
_(u"Apply to all"), default=False,
help_text=_(u"Apply this form to all users. If set to True, selecting "