diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-03-31 20:06:35 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-03-31 20:06:35 +0200 |
commit | 0a75ea93298a46eccbcfbffcb034cf7a9ab75c0d (patch) | |
tree | a8164dde6a40e805d8eae117c7383271e1944e52 /ishtar/furnitures/forms.py | |
parent | c701833ae97ca54e1e23b330faa7572d30400fcd (diff) | |
download | Ishtar-0a75ea93298a46eccbcfbffcb034cf7a9ab75c0d.tar.bz2 Ishtar-0a75ea93298a46eccbcfbffcb034cf7a9ab75c0d.zip |
Add of "surface" field to operations (closes #271)
Diffstat (limited to 'ishtar/furnitures/forms.py')
-rw-r--r-- | ishtar/furnitures/forms.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ishtar/furnitures/forms.py b/ishtar/furnitures/forms.py index a9519266f..334a93a58 100644 --- a/ishtar/furnitures/forms.py +++ b/ishtar/furnitures/forms.py @@ -1501,6 +1501,7 @@ class OperationFormGeneral(forms.Form): choices=models.OperationType.get_types()) start_date = forms.DateField(label=_(u"Start date"), required=False, widget=widgets.JQueryDate) + surface = forms.IntegerField(label=_(u"Surface"), required=False,) year = forms.IntegerField(label=_("Year"), initial=lambda:datetime.datetime.now().year, validators=[validators.MinValueValidator(1900), |