Hi Hiroki,

On Mon, Nov 12, 2012 at 12:31 PM, Hiroki Kiyohara <[email protected]>wrote:

> 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/


It appears to me that this is the same issue as described in this ticket
[1] and was referenced a few weeks ago on this mailinglist ([2]). Feel free
to comment on that ticket if you have new insights or a patch.

[1] https://code.djangoproject.com/ticket/19215
[2]
https://groups.google.com/d/topic/django-developers/3lpFZ380dzQ/discussion

Regards,


Tino

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to