diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-03-26 15:12:31 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-03-26 15:12:31 +0100 |
commit | 921174babfd04f1da248a4eb4536d882963b4700 (patch) | |
tree | bfbc5fa7a296011944c6c43865432e56584eb05a /archaeological_context_records | |
parent | d26ac1d32ae29093590a5d58167ebcab82c8fcd8 (diff) | |
download | Ishtar-921174babfd04f1da248a4eb4536d882963b4700.tar.bz2 Ishtar-921174babfd04f1da248a4eb4536d882963b4700.zip |
Operation - Context records: Surface int -> float
Diffstat (limited to 'archaeological_context_records')
-rw-r--r-- | archaeological_context_records/forms.py | 2 | ||||
-rw-r--r-- | archaeological_context_records/migrations/0106_auto_20210326_1434.py | 25 | ||||
-rw-r--r-- | archaeological_context_records/models.py | 2 |
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, |