From a81740f453f80a34a4602b9d0e334a9d5a26a59e Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 13 Jan 2022 09:38:36 +0530 Subject: [PATCH] Make select_300 boolean field --- .../0052_alter_mountainrange_select_300.py | 18 ++++++++++++++++++ app/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 app/migrations/0052_alter_mountainrange_select_300.py diff --git a/app/migrations/0052_alter_mountainrange_select_300.py b/app/migrations/0052_alter_mountainrange_select_300.py new file mode 100644 index 0000000..b6d0365 --- /dev/null +++ b/app/migrations/0052_alter_mountainrange_select_300.py @@ -0,0 +1,18 @@ +# Generated by Django 4.0.1 on 2022-01-13 04:08 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('app', '0051_auto_20220104_1608'), + ] + + operations = [ + migrations.AlterField( + model_name='mountainrange', + name='select_300', + field=models.BooleanField(blank=True, max_length=12, null=True), + ), + ] diff --git a/app/models.py b/app/models.py index 4980def..ebbd17f 100644 --- a/app/models.py +++ b/app/models.py @@ -119,7 +119,7 @@ class MountainRange(models.Model): gmba_v2_id_str = models.TextField(blank=True, null=True) wiki_data_id = models.CharField(blank=True, null=True, max_length=25) wiki_data_url = models.TextField(blank=True, null=True) - select_300 = models.CharField(blank=True, null=True, max_length=12) + select_300 = models.BooleanField(blank=True, null=True, max_length=12) gmba_narrow = models.CharField(blank=True, null=True, max_length=12) name_fr = models.CharField(blank=True, null=True, max_length=128) name_de = models.CharField(blank=True, null=True, max_length=128)