On Fri, 2009-01-23 at 15:47 -0800, Foxpl wrote:
> Hi, i have errors while i am trying to upload image by an admin panel.
> 
> Here is my image model:
> 
> class Photo(models.Model):
>     Title = models.CharField(max_length=256)
>     Description = models.TextField(max_length=1024, blank=True)
>     User = models.ForeignKey(User)
>     File = models.ImageField(upload_to='photos/%Y/%m/%d',
> height_field=60, width_field=468)

Reread the documentation for height_field and width_field. They aren't
numbers. They are the names of other attributes on the model (and,
hence, have to be strings. In fact, valid Python identifiers).

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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