Re: Deleting a model object then returning it

2011-08-15 Thread Colin Bean
On Mon, Aug 15, 2011 at 5:29 PM, Kevin Anthony wrote: > Accoding to the documentation all i need to do is > object = someobject.objects.all().filter(somefield=somevalue) > print object > object.delete() > print object > > and theoretically, object should be unchanged, since according to the > docu

Deleting a model object then returning it

2011-08-15 Thread Kevin Anthony
Accoding to the documentation all i need to do is object = someobject.objects.all().filter(somefield=somevalue) print object object.delete() print object and theoretically, object should be unchanged, since according to the documentation: Issues a SQL DELETE for the object. This only deletes the