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 object in the
database; the Python instance will still be around, and will still have data
in its fields.

but when i run this command
i get
[<someobject: someobject object>]
[]

so the python instance looses it's data. Is there another way to delete the
data from SQL while still being about to use it in Python?
because after i delete it, i need to serialize the data to JSON

Thanks
Kevin Anthony

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to