From fc78d8d96235008c0555775cf90f8752fad52df5 Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 5 Jan 2022 22:18:43 +0530 Subject: [PATCH] Make gmba_v2_id not editable --- app/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin.py b/app/admin.py index 81a43df..6b8bcc2 100644 --- a/app/admin.py +++ b/app/admin.py @@ -150,7 +150,7 @@ class RangeAdmin(admin.ModelAdmin): RangeNameTranslationInline, RangeCountryInline ] - readonly_fields = ('id',) + readonly_fields = ('id', 'gmba_v2_id') search_fields = ['name', 'range_name', 'range_name_ascii', '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']