Re: Django ImageField don't work properly

2005-12-20 Thread Batiste
Maniac a écrit : > I remember my struggles with such an issue, though I'm not sure it's the > same. > > The form data should include not only 'image' field but also > 'image_file' field. This is rendered by FormWrapper as a file upload > control and only then file's contents will be in a POST da

Re: Django ImageField don't work properly

2005-12-20 Thread Yoan Blanc
Probably fixed. :-) Batiste a écrit : > Hi, > > Form this model > - > class Image(meta.Model): > class META: > admin = meta.Admin() > image = meta.ImageField(upload_to='images') > annonce = meta.ForeignKey(Annonce,verbose_name="L'annonce")

Re: Django ImageField don't work properly

2005-12-20 Thread Maniac
Batiste wrote: Request Method:POST Request URL:http://127.0.0.1:8080/publier-media/1/ Exception Type: TypeError Exception Value: string indices must be integers Exception Location: /usr/lib/python2.4/site-packages/Django-0.90-py2.4.egg/django/core/validators.py in isValidImage, line 144 A

Django ImageField don't work properly

2005-12-19 Thread Batiste
Hi, Form this model - class Image(meta.Model): class META: admin = meta.Admin() image = meta.ImageField(upload_to='images') annonce = meta.ForeignKey(Annonce,verbose_name="L'annonce") def __repr__(self): return self.image