> def save( self ): > old_data = self.__class__.objects.get(pk=self.id).__dict__ > old_data['deleted'] = True > self.__class__.objects.create( **old_data ) > super( models.Model, self ).save() > > then when you do > > m = Model.objects.get(pk=42) > m.some_field='some new value' > m.save() Now I understand, I'll try it out and ask if something isn't clear Thx :)
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

