#29332: AdminReadOnly field accepts the optional argument model_admin but 
treats it
as non-optional
-----------------------------------------+------------------------
               Reporter:  Josh DM        |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  contrib.admin  |        Version:  1.11
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  1
                  UI/UX:  0              |
-----------------------------------------+------------------------
 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.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29332>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.2e524d4e7d588929a6a53d6472a8f370%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to