Solved thanks to
http://groups.google.com/group/django-users/browse_thread/thread/cae5c5a532a73b6d?pli=1
I was using image.resize instead of image.thumbnail. The second one
resize in place.
def save(self, **kwargs):
super(Foto, self).save(**kwargs)
path = self.image.path
Thanks for your reply, but...
Whats resized? It's not in my namespace.
2008/10/4 varikin <[EMAIL PROTECTED]>:
>
>
>
> On Oct 3, 4:18 pm, "Juanjo Conti" <[EMAIL PROTECTED]> wrote:
>> Hi, I used to use a pre 1.0 svn version of Django. There I had this class:
>>
>> class Foto(models.Model):
>>
On Oct 3, 4:18 pm, "Juanjo Conti" <[EMAIL PROTECTED]> wrote:
> Hi, I used to use a pre 1.0 svn version of Django. There I had this class:
>
> class Foto(models.Model):
> descripcion = models.CharField(max_length=30, blank=True,
> verbose_name=u"descripción")
> imagen = models.ImageField(
Hi, I used to use a pre 1.0 svn version of Django. There I had this class:
class Foto(models.Model):
descripcion = models.CharField(max_length=30, blank=True,
verbose_name=u"descripción")
imagen = models.ImageField(upload_to='imagenes', verbose_name=u"foto")
inmueble = models.ForeignK
4 matches
Mail list logo