Set default area to -1
This commit is contained in:
parent
20285f20c5
commit
ec40e896b3
2 changed files with 19 additions and 1 deletions
18
app/migrations/0047_alter_mountainrange_area.py
Normal file
18
app/migrations/0047_alter_mountainrange_area.py
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 3.2.5 on 2021-11-29 04:05
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('app', '0046_alter_keyword_mother'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='mountainrange',
|
||||||
|
name='area',
|
||||||
|
field=models.FloatField(default=-1),
|
||||||
|
),
|
||||||
|
]
|
|
@ -103,7 +103,7 @@ class MountainRange(models.Model):
|
||||||
latitude = models.CharField(blank=True, null=True, max_length=128)
|
latitude = models.CharField(blank=True, null=True, max_length=128)
|
||||||
longitude = models.CharField(blank=True, null=True, max_length=128)
|
longitude = models.CharField(blank=True, null=True, max_length=128)
|
||||||
orogeny = models.TextField(blank=True, null=True)
|
orogeny = models.TextField(blank=True, null=True)
|
||||||
area = models.FloatField(blank=True, null=True)
|
area = models.FloatField(default=-1)
|
||||||
GMBA_v1_id = models.CharField(blank=True, null=True, max_length=25)
|
GMBA_v1_id = models.CharField(blank=True, null=True, max_length=25)
|
||||||
peak_elevation = models.TextField(blank=True, null=True)
|
peak_elevation = models.TextField(blank=True, null=True)
|
||||||
peak_name = models.TextField(blank=True, null=True)
|
peak_name = models.TextField(blank=True, null=True)
|
||||||
|
|
Loading…
Reference in a new issue