Make wiki_data_url urlfield + make it closer to wiki_data_id

This commit is contained in:
PCoder 2022-01-13 10:14:43 +05:30
parent f02ea9e2ea
commit 90b4f3e53e
3 changed files with 20 additions and 2 deletions

View file

@ -161,7 +161,7 @@ class RangeAdmin(admin.ModelAdmin):
('range_name_map', 'select_300', 'gmba_narrow', 'checked'),
('range_name_ascii', 'GMBA_v1_id'),
('latitude', 'longitude'),
('mother_range', 'wiki_data_id', 'area'),
('mother_range', 'wiki_data_id', 'wiki_data_url', 'area'),
('feature', 'range_alternate_id'),
'source',
'id',

View file

@ -0,0 +1,18 @@
# Generated by Django 4.0.1 on 2022-01-13 04:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0054_alter_mountainrange_gmba_narrow'),
]
operations = [
migrations.AlterField(
model_name='mountainrange',
name='wiki_data_url',
field=models.URLField(blank=True, null=True),
),
]

View file

@ -118,7 +118,7 @@ class MountainRange(models.Model):
gmba_v2_id = models.PositiveIntegerField(blank=True, null=True)
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)
wiki_data_url = models.URLField(blank=True, null=True)
select_300 = models.BooleanField(default=False)
gmba_narrow = models.BooleanField(default=False, verbose_name="GMBA Standard")
name_fr = models.CharField(blank=True, null=True, max_length=128)