Fix issues
This commit is contained in:
parent
cf20ba24df
commit
322ad9ad8f
2 changed files with 35 additions and 6 deletions
12
app/admin.py
12
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',),
|
||||
})
|
||||
)
|
||||
|
||||
|
|
29
app/migrations/0019_auto_20211123_1003.py
Normal file
29
app/migrations/0019_auto_20211123_1003.py
Normal file
|
@ -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'),
|
||||
),
|
||||
]
|
Loading…
Reference in a new issue