Changes between Initial Version and Version 1 of Ticket #29682
- Timestamp:
- Aug 17, 2018, 10:46:15 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29682
- Property Component Forms → contrib.admin
- Property Severity Normal → Release blocker
- Property Triage Stage Unreviewed → Accepted
- Property Summary Error in view permission with custom model form field → Admin change form crashes if a view-only model's form has field not on the model
-
Ticket #29682 – Description
initial v1 1 2 - Set permission to user with only view to model 3 - Create field in form class 4 - Go to django admin view un object created 1 Viewing an existing view-only object crashes with: 2 {{{ 3 AttributeError at /admin/t29682/modela/1/change/ 4 Unable to lookup 'form_field' on ModelA or ModelAAdmin 5 }}} 5 6 6 7 {{{ … … 28 29 class ModelAAdmin(admin.ModelAdmin): 29 30 30 form = TestForm31 form = ModelAForm 31 32 32 33 fieldsets = (