Add id readonly field for Range
This commit is contained in:
parent
05b2fa770c
commit
b538f138a0
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ class ResourceAdmin(admin.ModelAdmin):
|
||||||
|
|
||||||
|
|
||||||
class RangeAdmin(admin.ModelAdmin):
|
class RangeAdmin(admin.ModelAdmin):
|
||||||
|
readonly_fields = ('id',)
|
||||||
search_fields = ['name', 'range_name', 'range_name_ascii', 'range_name_language', 'mother_range', 'feature',
|
search_fields = ['name', 'range_name', 'range_name_ascii', 'range_name_language', 'mother_range', 'feature',
|
||||||
'level', 'level', 'level_1', 'level_2', 'level_3', 'peak_name', 'comments', 'source',
|
'level', 'level', 'level_1', 'level_2', 'level_3', 'peak_name', 'comments', 'source',
|
||||||
'name_fr', 'name_de', 'name_es', 'name_pt', 'name_cn', 'name_ru', 'name_tr']
|
'name_fr', 'name_de', 'name_es', 'name_pt', 'name_cn', 'name_ru', 'name_tr']
|
||||||
|
|
Loading…
Reference in a new issue