SDK1.11 djangoforms breaks django FileField

8 views
Skip to first unread message

@@

unread,
Aug 12, 2008, 10:57:09 PM8/12/08
to google-a...@googlegroups.com, pyth...@googlegroups.com
The recent change in djangoforms breaks the FileField.
i filled a issue here
http://code.google.com/p/googleappengine/issues/detail?id=637

Here is a temporary fix works for me
django.newforms.forms.BaseForm.full_clean() about line 202
                if isinstance(field, FileField):
                    #initial = self.initial.get(name, field.initial)
                    #value = field.clean(value, initial)
                    value = field.clean(value)
this can be problematic if you use set a initial data for FileField

killer barney

unread,
Aug 23, 2008, 8:36:12 PM8/23/08
to Google App Engine
having the same problem. what file did you add that fix in?

On Aug 12, 7:57 pm, "@@" <ask...@gmail.com> wrote:
> The recent change in djangoforms breaks the FileField.
> i filled a issue herehttp://code.google.com/p/googleappengine/issues/detail?id=637

@@

unread,
Aug 23, 2008, 10:02:21 PM8/23/08
to google-a...@googlegroups.com
django.newforms.forms.py (i'm using 0.97)
Reply all
Reply to author
Forward
0 new messages