diff --git a/app/admin.py b/app/admin.py index d6fb4d1..8f5c022 100644 --- a/app/admin.py +++ b/app/admin.py @@ -56,28 +56,28 @@ class RangeAdmin(admin.ModelAdmin): (None, { 'fields': ( ('gmba_v2_id', 'range_name', 'range_name_language', 'map_unit'), - ('range_name_map','select_300', 'latitude', 'checked'), + ('range_name_map', 'select_300', 'latitude', 'checked'), ('range_name_ascii', 'gmba_v1_id', 'longitude'), ('mother_range', 'wiki_data_id', 'area'), ('feature', 'range_alternate_id', 'gmba_narrow'), - 'countries', 'source', - ('range_id', 'area') + 'range_id', ) }), ('Range Name Translation', { 'classes': ('collapse',), 'fields': ( ('name_fr', 'name_de', 'name_es', 'name_pt'), - ('name_ru', 'name_tr', 'name_cn'),), + ('name_ru', 'name_tr', 'name_cn') + ) }), ('Range Countries', { 'classes': ('collapse',), - 'fields': ('countries'), + 'fields': ('countries',), }), ('Comments', { 'classes': ('collapse',), - 'fields': ('comments'), + 'fields': ('comments',), }) ) diff --git a/app/migrations/0019_auto_20211123_1003.py b/app/migrations/0019_auto_20211123_1003.py new file mode 100644 index 0000000..39bd1e3 --- /dev/null +++ b/app/migrations/0019_auto_20211123_1003.py @@ -0,0 +1,29 @@ +# Generated by Django 3.2.5 on 2021-11-23 10:03 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('app', '0018_alter_person_entry_date'), + ] + + operations = [ + migrations.AlterField( + model_name='range', + name='checked', + field=models.BooleanField(default=False), + ), + migrations.AlterField( + model_name='range', + name='mother_range', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='app.range'), + ), + migrations.AlterField( + model_name='range', + name='range_name_language', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='app.language'), + ), + ]