diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-01-17 23:01:24 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-01-17 23:01:24 +0100 |
commit | c481c44e52175f16571654bc9948d3e14097badb (patch) | |
tree | caaf4618a55667bb4bdaab4a9c2fcb0e094ff077 | |
parent | 644df0e3937aa2021ba7f74aa613c8c39dcfc685 (diff) | |
download | Chimère-c481c44e52175f16571654bc9948d3e14097badb.tar.bz2 Chimère-c481c44e52175f16571654bc9948d3e14097badb.zip |
Add boolean type for dynamic fields
-rw-r--r-- | chimere/models.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chimere/models.py b/chimere/models.py index 3dae073..7ee2e6a 100644 --- a/chimere/models.py +++ b/chimere/models.py @@ -1513,12 +1513,14 @@ class PropertyModel(models.Model): ('P', _('Password')), ('D', _("Date")), ('C', _("Choices")), + ('B', _("Boolean")), ) TYPE_WIDGET = {'T':forms.TextInput, 'L':TextareaWidget, 'P':forms.PasswordInput, 'D':DatePickerWidget, - 'C':forms.Select + 'C':forms.Select, + 'B':forms.CheckboxInput, } type = models.CharField(_(u"Type"), max_length=1, choices=TYPE) def __unicode__(self): |