Make the tutorial slightly more intuitive (#1530)

This commit is contained in:
Jason 2017-04-20 08:11:38 -05:00 committed by Stefan Wójcik
parent 824ec42005
commit 358b80d782

View File

@ -206,7 +206,10 @@ object::
ross.last_name = 'Lawley'
ross.save()
Now that we've got our user in the database, let's add a couple of posts::
Assign another user to a variable called ``john``, just like we did above with
``ross``.
Now that we've got our users in the database, let's add a couple of posts::
post1 = TextPost(title='Fun with MongoEngine', author=john)
post1.content = 'Took a look at MongoEngine today, looks pretty cool.'