django update object
Posted
by John
on Stack Overflow
See other posts from Stack Overflow
or by John
Published on 2010-04-26T10:29:59Z
Indexed on
2010/04/26
10:33 UTC
Read the original article
Hit count: 157
django
Hi,
How do I run an update and select statement on the same queryset rather than having to do 2 querys, ones to select the object and one to update the object?
the sql would be something like
update my_table set field_1 = 'some value' where pk_field = some_value
Thanks
© Stack Overflow or respective owner