Changes between Initial Version and Version 1 of Ticket #29682


Ignore:
Timestamp:
08/17/18 15:46:15 (4 years ago)
Author:
Tim Graham
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29682

    • Property Severity changed from Normal to Release blocker
    • Property Triage Stage changed from Unreviewed to Accepted
    • Property Component changed from Forms to contrib.admin
    • Property Summary changed from Error in view permission with custom model form field to 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
     1Viewing an existing view-only object crashes with:
     2{{{
     3AttributeError at /admin/t29682/modela/1/change/
     4Unable to lookup 'form_field' on ModelA or ModelAAdmin
     5}}}
    56
    67{{{
     
    2829class ModelAAdmin(admin.ModelAdmin):
    2930
    30     form = TestForm
     31    form = ModelAForm
    3132
    3233    fieldsets = (
Back to Top