Re: Django (1.5) login exception (Save with update_fields did not affect any rows)

2014-11-17 Thread jeroenp
Hi, the model.save() arguments `force_update` and `update_fields` cause an explicit check if the update statement matched any rows. Every once in a while one of my applications runs into a race condition where one process does an update (with one of the flags) and another just removed an objec

Django (1.5) login exception (Save with update_fields did not affect any rows)

2014-03-29 Thread AK
In my Django web app (running on Google App Engine), when a new user signs up a User object is created and then that user is authenticated and logged in. Every once in a while, the login function throws an exception (DatabaseError: Save with update_fields did not affect any rows) and I'm not