Add the ability to select for update within transactions to fix some write after read hazards. Fix a bug in extend_processing.

This commit is contained in:
Jake Moshenko 2015-01-30 16:32:13 -05:00
parent e8b25ad7ff
commit 64750e31fc
4 changed files with 37 additions and 15 deletions

View file

@ -246,7 +246,7 @@ class User(ApiResource):
# Username already used
raise request_error(message='Username is already in use')
model.change_username(user, new_username)
model.change_username(user.id, new_username)
except model.InvalidPasswordException, ex:
raise request_error(exception=ex)