Changes between Initial Version and Version 2 of Ticket #29332


Ignore:
Timestamp:
Apr 17, 2018, 8:07:08 AM (7 years ago)
Author:
Tim Graham
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29332

    • Property Resolutionduplicate
    • Property Status newclosed
    • Property Summary AdminReadOnly field accepts the optional argument model_admin but treats it as non-optionalAdminReadonlyField accepts the optional argument model_admin but treats it as non-optional
  • Ticket #29332 – Description

    initial v2  
    1 Using a FieldSet without providing a `model_admin` results in an error since AdminReadOnly calls: `model_admin.get_empty_value_display()`.
     1Using a FieldSet without providing a `model_admin` results in an error since `AdminReadonlyField` calls: `model_admin.get_empty_value_display()`.
    22
    33My expected behaviour is that it does not error, and sets the `empty_value_display` to the empty string.
Back to Top