summaryrefslogtreecommitdiff
path: root/ishtar/furnitures/models.py
diff options
context:
space:
mode:
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
commit0a75ea93298a46eccbcfbffcb034cf7a9ab75c0d (patch)
treea8164dde6a40e805d8eae117c7383271e1944e52 /ishtar/furnitures/models.py
parentc701833ae97ca54e1e23b330faa7572d30400fcd (diff)
downloadIshtar-0a75ea93298a46eccbcfbffcb034cf7a9ab75c0d.tar.bz2
Ishtar-0a75ea93298a46eccbcfbffcb034cf7a9ab75c0d.zip
Add of "surface" field to operations (closes #271)
Diffstat (limited to 'ishtar/furnitures/models.py')
-rw-r--r--ishtar/furnitures/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar/furnitures/models.py b/ishtar/furnitures/models.py
index cd901af32..6b586decf 100644
--- a/ishtar/furnitures/models.py
+++ b/ishtar/furnitures/models.py
@@ -428,7 +428,6 @@ class Operation(BaseHistorizedItem, OwnPerms):
'remains', 'towns', 'associated_file', 'start_date']
start_date = models.DateField(_(u"Start date"), null=True, blank=True)
end_date = models.DateField(_(u"Closing date"), null=True, blank=True)
- begin_operation = models.DateField(_(u"Start date"), null=True, blank=True)
in_charge = models.ForeignKey('Person', related_name='+', null=True,
blank=True, verbose_name=_(u"In charge"))
year = models.IntegerField(_(u"Year"))
@@ -437,6 +436,7 @@ class Operation(BaseHistorizedItem, OwnPerms):
verbose_name=_(u"File"), blank=True, null=True)
operation_type = models.ForeignKey(OperationType, related_name='+',
verbose_name=_(u"Operation type"))
+ surface = models.IntegerField(_(u"Surface (m²)"), blank=True, null=True)
remains = models.ManyToManyField("RemainType", verbose_name=_(u'Remains'))
towns = models.ManyToManyField("Town", verbose_name=_(u"Towns"))
cost = models.IntegerField(_(u"Cost"), blank=True, null=True)