Changes between Initial Version and Version 1 of Ticket #29682


Ignore:
Timestamp:
Aug 17, 2018, 10:46:15 AM (6 years ago)
Author:
Tim Graham
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29682

    • Property Component Formscontrib.admin
    • Property Severity NormalRelease blocker
    • Property Triage Stage UnreviewedAccepted
    • Property Summary Error in view permission with custom model form fieldAdmin 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