How does raw SQL interact with the 'save' function?

Say I need to:
increment 'count'
set another variable on the same object

Do I need to write custom SQL to update the second variable?
Can I just use .save() and have it work as I want it to (or will count
be changed to the old value)?

How can I keep the database value and the django-viewed value the
same... can I do the update SQL and then 'self.count = self.count +
1'... is there any way to 'freshen' the value after the update so that
.save won't be impacted?

Thanks,
--Ben


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to