Hi, all. 

Problem
=======
In updating objects(UpdateView and so on), 
django.forms.widgets.ClearableFileInput doesn't render a currently value when  
the POSTed data was invalid(for example, uploading PDF file to ImageField using 
ClearableFileInput). 
The HTML rendered when invalid error is only includes input tag. It's natural 
to render more components ("Currentry: /path/to/spam", clear checkbox and so 
on). 

For more detail
----------------------
And the input field rendered when invalid error allows empty, even if the field 
is required. And it allows empty submit. In this case, the currently value will 
retain. This behavior is gross. seriously.

Why this happens
===============
render method on ClearableFileInput isn't render currently value and checkbox 
when value arg is empty. 
When validation error is raise, the arg will be empty.

Django's version
==============
I found this behavior in Django==1.4.1

conclusion
=========
If you can't understand my poor English or this problem is my misunderstanding, 
sorry, please tell me so. 

-----------------------
Hiroki Kiyohara
@hirokiky
http://hirokiky.org/

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
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