summaryrefslogtreecommitdiff
path: root/archaeological_context_records
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_context_records')
-rw-r--r--archaeological_context_records/forms.py2
-rw-r--r--archaeological_context_records/migrations/0106_auto_20210326_1434.py25
-rw-r--r--archaeological_context_records/models.py2
3 files changed, 27 insertions, 2 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py
index d727dae27..409ed0864 100644
--- a/archaeological_context_records/forms.py
+++ b/archaeological_context_records/forms.py
@@ -302,7 +302,7 @@ class RecordFormGeneral(CustomForm, ManageOldType):
excavation_technic = forms.ChoiceField(
label=_("Excavation technique"), choices=[], required=False
)
- surface = forms.IntegerField(
+ surface = forms.FloatField(
required=False,
widget=widgets.AreaWidget,
label=_("Total surface (m2)"),
diff --git a/archaeological_context_records/migrations/0106_auto_20210326_1434.py b/archaeological_context_records/migrations/0106_auto_20210326_1434.py
new file mode 100644
index 000000000..cd52111d5
--- /dev/null
+++ b/archaeological_context_records/migrations/0106_auto_20210326_1434.py
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.27 on 2021-03-26 14:34
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('archaeological_context_records', '0105_auto_20201203_1453'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='contextrecord',
+ name='surface',
+ field=models.FloatField(blank=True, null=True, verbose_name='Surface (m2)'),
+ ),
+ migrations.AlterField(
+ model_name='historicalcontextrecord',
+ name='surface',
+ field=models.FloatField(blank=True, null=True, verbose_name='Surface (m2)'),
+ ),
+ ]
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index 02d488c85..26353eed1 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -639,7 +639,7 @@ class ContextRecord(
depth_of_appearance = models.FloatField(
_("Depth of appearance (m)"), blank=True, null=True
)
- surface = models.IntegerField(_("Surface (m2)"), blank=True, null=True)
+ surface = models.FloatField(_("Surface (m2)"), blank=True, null=True)
location = models.TextField(
_("Location"),
blank=True,