From b538f138a0118a8b1d6d5f5f5d04b4fe52e77bc9 Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 25 Nov 2021 14:02:19 +0530 Subject: [PATCH] Add id readonly field for Range --- app/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/admin.py b/app/admin.py index a9e8905..de7a3bd 100644 --- a/app/admin.py +++ b/app/admin.py @@ -49,6 +49,7 @@ class ResourceAdmin(admin.ModelAdmin): class RangeAdmin(admin.ModelAdmin): + readonly_fields = ('id',) 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', 'name_fr', 'name_de', 'name_es', 'name_pt', 'name_cn', 'name_ru', 'name_tr']