docs: tweak quickstart example
This commit is contained in:
parent
189a53c82a
commit
58cef0c9c2
1 changed files with 1 additions and 2 deletions
|
|
@ -116,8 +116,7 @@ invoke other app/handler logic::
|
||||||
# invoke secondary handler to make new user account
|
# invoke secondary handler to make new user account
|
||||||
auth = app.get_auth_handler()
|
auth = app.get_auth_handler()
|
||||||
user = auth.make_user(session=session, username='barney')
|
user = auth.make_user(session=session, username='barney')
|
||||||
|
assert isinstance(user, model.User)
|
||||||
# commit changes to DB
|
|
||||||
session.add(user)
|
session.add(user)
|
||||||
session.commit()
|
session.commit()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue