Hi all,
I need to check if a certain field in my model has changed before
saving:
--
model MyModel(models.Model):
mypic = models.ImageField()
def save(self):
if self.mypic.tainted:
# do some work because the image has changed
super(MyModel, self).save()
--
So I only would need some advice on this "tainted" thing :)
Any thoughts on what I could use to solve my problem?
BTW: It has to be in the "save" method, because I need to work on the
image even when a staff member uploads something from the admin
interface.
Martin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---