Skip to content

Commit

Permalink
Set readonly fields on LocalUnit Admin panel (#2353)
Browse files Browse the repository at this point in the history
  • Loading branch information
susilnem committed Jan 13, 2025
1 parent 137b967 commit 22102bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions local_units/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ class LocalUnitAdmin(CompareVersionAdmin, admin.OSMGeoAdmin):
"level",
"health",
)
readonly_fields = (
"validated",
"is_locked",
)
list_filter = (
AutocompleteFilterFactory("Country", "country"),
AutocompleteFilterFactory("Type", "type"),
Expand Down

0 comments on commit 22102bc

Please sign in to comment.