I have a table with an IntegerField (hit_count), and when a page is visited (for example, http://site/page/3) I want record ID 3\'s
IntegerField
hit_count
http://site/page/3
The model conventions won't be atomic; write it by hand:
BEGIN SELECT * FROM table WHERE id=3 FOR UPDATE UPDATE table SET hit_count=hit_count+1 WHERE id=3 COMMIT