From 0569c6a894d97953e479b9bb9529fd0ad57dedaf Mon Sep 17 00:00:00 2001 From: wie-niet Date: Mon, 21 Oct 2019 17:36:55 +0200 Subject: [PATCH] typo in example code --- docs/basic_usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/basic_usage.rst b/docs/basic_usage.rst index e0141e9..b048f3b 100644 --- a/docs/basic_usage.rst +++ b/docs/basic_usage.rst @@ -116,7 +116,7 @@ Once your database set up, you can create some users: from your_application import User admin = User.create(name='admin', email='admin@example.com') - guest = Guest.create(name='guest', email='guest@example.com') + guest = User.create(name='guest', email='guest@example.com') The ``create()`` method will create the users instantly. But you can also initiate them and save them later: @@ -137,7 +137,7 @@ initiate them and save them later: with db.transaction(): admin = User.create(name='admin', email='admin@example.com') - guest = Guest.create(name='guest', email='guest@example.com') + guest = User.create(name='guest', email='guest@example.com') You can now retrieve them easily from the database: