From d7daac762c36d35737f36e46d5a13f47cce87351 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 21 Aug 2016 16:49:09 +0200 Subject: Context records: centimeters to meters for dimensions (refs #2963) --- archaeological_context_records/models.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'archaeological_context_records/models.py') 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 " -- cgit v1.2.3