diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-21 16:49:09 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-21 16:50:55 +0200 |
commit | d7daac762c36d35737f36e46d5a13f47cce87351 (patch) | |
tree | 3d286758b2b74ee8517e172ad9247dcc729c7c82 /archaeological_context_records/models.py | |
parent | 3e162780236ca6608270665b0cbc9c75c27a2a75 (diff) | |
download | Ishtar-d7daac762c36d35737f36e46d5a13f47cce87351.tar.bz2 Ishtar-d7daac762c36d35737f36e46d5a13f47cce87351.zip |
Context records: centimeters to meters for dimensions (refs #2963)
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r-- | archaeological_context_records/models.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index a5b1463bf..f2a802fbe 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -133,11 +133,11 @@ class ContextRecord(BaseHistorizedItem, OwnPerms, ShortMenuItem): opening_date = models.DateField(_(u"Date d'ouverture"), blank=True, null=True) closing_date = models.DateField(_(u"End date"), blank=True, null=True) - length = models.IntegerField(_(u"Length (cm)"), blank=True, null=True) - width = models.IntegerField(_(u"Width (cm)"), blank=True, null=True) - thickness = models.IntegerField(_(u"Thickness (cm)"), blank=True, - null=True) - depth = models.IntegerField(_(u"Depth (cm)"), blank=True, null=True) + length = models.FloatField(_(u"Length (m)"), blank=True, null=True) + width = models.FloatField(_(u"Width (m)"), blank=True, null=True) + thickness = models.FloatField(_(u"Thickness (m)"), blank=True, + null=True) + depth = models.FloatField(_(u"Depth (m)"), blank=True, null=True) location = models.CharField( _(u"Location"), blank=True, null=True, max_length=200, help_text=_(u"A short description of the location of the context " |