Skip to content

Commit 22102bc

Browse files
committed
Set readonly fields on LocalUnit Admin panel (#2353)
1 parent 137b967 commit 22102bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

local_units/admin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ class LocalUnitAdmin(CompareVersionAdmin, admin.OSMGeoAdmin):
5252
"level",
5353
"health",
5454
)
55+
readonly_fields = (
56+
"validated",
57+
"is_locked",
58+
)
5559
list_filter = (
5660
AutocompleteFilterFactory("Country", "country"),
5761
AutocompleteFilterFactory("Type", "type"),

0 commit comments

Comments
 (0)