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:
parent
e8b25ad7ff
commit
64750e31fc
4 changed files with 37 additions and 15 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue