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
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")
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
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
4 matches
Mail list logo