Re: FileField / ImageField problem on update

2007-08-12 Thread Collin Grady
You can't access the old value once you've sent in a new one, unless you query the database again for the old record before you save the new. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

FileField / ImageField problem on update

2007-08-11 Thread Grupo Django
Hi, When I update a register that has a ImageField, the old file is not deleted from the disk, so I have created a custom save method like this: def save( self ): path = self.get_foto_filename() delete_file(path) super(Perfil, self).save() But path is set to the new file