django.contrib.gis.admin.GeoModelAdmin ignores ModelAdmin.readonly_fields
When using admin.GeoModelAdmin (or admin.OSMGeoAdmin), 'readonly_fields' (a feature currently only available in django svn) are not respected and the fields are rendered as editable (and can be changed). Strangely, using admin.GeoModelAdmin also makes non-geometry readonly fields editable. This, in spite of contrib/gis/admin/options.py clearly delegating field rendering of non-geometry fields to super (in this case ModelAdmin and then BaseModelAdmin).
Change History
(10)
Triage Stage: |
Unreviewed → Design decision needed
|
Owner: |
changed from nobody to jbronn
|
Status: |
new → assigned
|
milestone: |
1.3
|
Severity: |
→ Normal
|
Type: |
→ Bug
|
Easy pickings: |
unset
|
UI/UX: |
unset
|
Triage Stage: |
Design decision needed → Accepted
|
Owner: |
changed from jbronn to Krzysztof Żuraw
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
(In [12995]) Fixed #11810 -- Fixed typo and errors that prevented
modifiable
from working in the geographic admin. Thanks to Rob Coup for the bug report. Refs #12504.