I posted this question to Stack Overflow a couple weeks ago 
(link<http://stackoverflow.com/questions/12902785/imagefields-currently-and-clear-sometimes-doesnt-appear>)
 
but have had no responses. I'm guessing it's geared more towards the Django 
developers, so I'm going to post it here.

Assume you have a model that has a required field of any type and also an 
optional ImageField. Let's say you used Django's built-in admin interface 
to insert a row into this database table and when you did so, you filled 
out both fields. Now let's say you go to edit the row that you just 
created. The ImageField will look like this:

Currently: [url] | [checkbox] Clear

Change: [file widget]

If you upload a non-image (a PDF, for example), it will say "Upload a valid 
image. The file you uploaded was either not an image or a corrupted image." 
only now the "Currently: [url] | [checkbox] Clear" portion won't be there 
anymore. This can be misleading to users (causing them to think the 
original image is now gone).

Another issue is let's say you were editing the row and you blanked out the 
required field and also replaced the image with another one. It will, of 
course, complain about the required field not being filled out. But, again, 
the "Currently: [url] | [checkbox] Clear" portion of the image field won't 
be there anymore. Again, this can mislead the user.

Is this a bug or is this the intended behavior? Either way, how can I get 
around this?

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/rPuD3oL06jwJ.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to