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
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
2 matches
Mail list logo