diff --git a/app/migrations/0040_alter_mountainrange_area.py b/app/migrations/0040_alter_mountainrange_area.py new file mode 100644 index 0000000..8631ec1 --- /dev/null +++ b/app/migrations/0040_alter_mountainrange_area.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.5 on 2021-11-28 08:17 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('app', '0039_auto_20211128_0811'), + ] + + operations = [ + migrations.AlterField( + model_name='mountainrange', + name='area', + field=models.TextField(blank=True, null=True), + ), + ] diff --git a/app/migrations/0041_auto_20211128_0823.py b/app/migrations/0041_auto_20211128_0823.py new file mode 100644 index 0000000..f13207b --- /dev/null +++ b/app/migrations/0041_auto_20211128_0823.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.5 on 2021-11-28 08:23 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('app', '0040_alter_mountainrange_area'), + ] + + operations = [ + migrations.AlterField( + model_name='mountainrange', + name='latitude', + field=models.DecimalField(blank=True, decimal_places=16, default=0, max_digits=22, null=True), + ), + migrations.AlterField( + model_name='mountainrange', + name='longitude', + field=models.DecimalField(blank=True, decimal_places=16, default=0, max_digits=22, null=True), + ), + ] diff --git a/app/models.py b/app/models.py index 61f9eda..331d25b 100644 --- a/app/models.py +++ b/app/models.py @@ -100,10 +100,10 @@ class MountainRange(models.Model): level_1 = models.TextField(blank=True, null=True) level_2 = models.TextField(blank=True, null=True) level_3 = models.TextField(blank=True, null=True) - latitude = models.CharField(blank=True, null=True, max_length=128) - longitude = models.CharField(blank=True, null=True, max_length=128) + latitude = models.DecimalField(max_digits=22, decimal_places=16, blank=True, null=True, default=0) + longitude = models.DecimalField(max_digits=22, decimal_places=16, blank=True, null=True, default=0) orogeny = models.TextField(blank=True, null=True) - area = models.FloatField(blank=True, null=True) + area = models.TextField(blank=True, null=True) GMBA_v1_id = models.CharField(blank=True, null=True, max_length=25) peak_elevation = models.TextField(blank=True, null=True) peak_name = models.TextField(blank=True, null=True)