[fix] Fixed ObjectLocation admin read-only mode #95
In view-only mode, Django admin uses 'AdminReadonlyField' to render data. This field checks the model instance for corresponding form fields. To correctly render the geometry widget, its 'read_only' attribute must be set to True. By setting the required attributes on the instance and marking the geometry widget as read-only, the data is now visible and the map renders properly. Fixes #95 Signed-off-by: DragnEmperor <dragnemperor@gmail.com> Co-authored-by: Federico Capoano <f.capoano@openwisp.io>
J
JgtAman committed
f496ee2d57ad8b09e36fd4633a7adde505152d45
Parent: 4394f6d
Committed by GitHub <noreply@github.com>
on 4/10/2025, 10:09:39 PM