My expected behaviour is that it does not error, and sets the
`empty_value_display` to the empty string.
Relevant file:
https://github.com/django/django/blob/master/django/contrib/admin/helpers.py
Cheers.
--
Ticket URL: <https://code.djangoproject.com/ticket/29332>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => duplicate
Comment:
Duplicate of #27157.
--
Ticket URL: <https://code.djangoproject.com/ticket/29332#comment:1>
Old description:
> Using a FieldSet without providing a `model_admin` results in an error
> since AdminReadOnly calls: `model_admin.get_empty_value_display()`.
>
> My expected behaviour is that it does not error, and sets the
> `empty_value_display` to the empty string.
> Relevant file:
> https://github.com/django/django/blob/master/django/contrib/admin/helpers.py
>
> Cheers.
New description:
Using a FieldSet without providing a `model_admin` results in an error
since `AdminReadonlyField` calls: `model_admin.get_empty_value_display()`.
My expected behaviour is that it does not error, and sets the
`empty_value_display` to the empty string.
Relevant file:
https://github.com/django/django/blob/master/django/contrib/admin/helpers.py
Cheers.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/29332#comment:2>