I think it must be something that I'm not doing.
It all works when I'm using a ModelForm, so there must be a difference
between what I'm doing manually, and what the ModelForm does for me.
The culprit must be my code:
new_image = ImageWithThumbsField(images_to_save[image],
upload_to=ListingModels.image_upload_location,
sizes=((ListingModels.thumb_widths,
ListingModels.thumb_heights),))
image_object= Image(photo=new_image)
image_object.save()
most likely the new_image creation I would think.
In all honesty, I'm not sure if I'm giving the ImageWIthThumbsField
class the image correctly - perhaps my brain is fried(mmm... bacon),
but how exactly do you give an ImageField (ImageWIthThumbsField
extends ImageField) class the actual Image ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---