#14497: ModelAdmin.readonly_fields isn't graceful with filefields.
-------------------------------------+-------------------------------------
     Reporter:  Keryn Knight         |                    Owner:
  <keryn@…>                          |  paulcollins
         Type:  New feature          |                   Status:  new
    Component:  contrib.admin        |                  Version:  1.2
     Severity:  Normal               |               Resolution:
     Keywords:  feature admin        |             Triage Stage:  Accepted
  readonly filefield                 |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  1
Easy pickings:  0                    |
-------------------------------------+-------------------------------------
Changes (by paulcollins):

 * status:  assigned => new
 * owner:  adamjforster => paulcollins
 * needs_tests:  1 => 0


Comment:

 @adamjforster I'm grabbing this ticket since you called out for some help
 writing tests. Please feel free to grab it back if you'd like. I removed
 your check on for value.file, because it causes an IO exception (no such
 file) during the unittests. I figured that testing for the actual
 existence of the file wasn't really needed to generate the link to the
 file.

 @akaariai I've added the Selenium tests, but I'm not sure if that's the
 fastest way to test that the field is rendering correctly in the admin.
 Suggestions?

 @javiersanchez I can update the patch for this but that would make this
 particular interface inconsistent with the read/write interface. In the
 current version the link is rendered the same way, though it's rendered by
 different code.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/14497#comment:13>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to