summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-05-23 17:13:35 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-12 08:49:06 +0200
commitc80d0b8b3571b1055951ee8e387ec6ee56d5c55b (patch)
tree427ba1a5c67ec7d578549f64dbd3496d72ec37ca /ishtar_common/models.py
parent743b514bb132752ef87a21e759d35988ffd25229 (diff)
downloadIshtar-c80d0b8b3571b1055951ee8e387ec6ee56d5c55b.tar.bz2
Ishtar-c80d0b8b3571b1055951ee8e387ec6ee56d5c55b.zip
Wizards - JSON fields: Manage field display in forms - management in wizards save and form init (refs #4089)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index bb285883f..e4c6d0e9a 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -1893,7 +1893,10 @@ class CustomFormJsonField(models.Model):
custom_form = models.ForeignKey(CustomForm, related_name='json_fields')
json_field = models.ForeignKey(JsonDataField,
related_name='custom_form_details')
+ label = models.CharField(_(u"Label"), max_length=200, blank=True,
+ default='')
order = models.IntegerField(verbose_name=_(u"Order"), default=1)
+ help_text = models.TextField(_(u"Help"), blank=True, null=True)
class Meta:
verbose_name = _(u"Custom form - Json data field")