I got a few questions cause it is not working (I assume I am to
silly):
> def save( self ):
>     old_data = self.__class__.objects.get(pk=self.id).__dict__
I can substitue pk with id (this is my primary...)
>     old_data['deleted'] = True
Mark the old_data as deleted
>     self.__class__.objects.create( **old_data )
Now create a new record with the old_data
>     super( models.Model, self ).save()
Saves what?
>
> then when you do
>
> m = Model.objects.get(pk=42)
42 should be self.id?
> m.some_field='somenewvalue'
The things I want to change is the submitted input of the user....
> m.save()

What I get is the new data through the admin form. Somehow it is not
working for me, I even don't get errors the server just hangs up...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to