Thanks,

You are great. It also solves my problem. :)
On Feb 15, 3:32 pm, bruno desthuilliers
<bruno.desthuilli...@gmail.com> wrote:
> On Feb 15, 1:30 pm, knight <alexar...@gmail.com> wrote:
>
> Don't know if it has anything to do with your problem, but there's an
> error in your form:
>
>
>
> > My form:
>
> > class UploadImageForm(ModelForm):
> >     class Meta:
> >         model = ImageUpload
> >         fields = ('thumb')
>
> Python gotcha here: what defines a tuple is the comma, not the parens.
> You want:
>
>          fields = ('thumb', ) # required trailing comma
>
> HTH

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

Reply via email to