From bbdc0b4fe4b6312cbc4ee74ba6fd61d6abbcfef4 Mon Sep 17 00:00:00 2001 From: BoscoMW Date: Fri, 3 Oct 2014 13:03:35 +0300 Subject: [PATCH] Update README.md to demonstrate user creation Create use step was skipped in the orm demonstration, this update reflects that. --- django_orm/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/django_orm/README.md b/django_orm/README.md index 5e9912078cd..f2927a5cc99 100644 --- a/django_orm/README.md +++ b/django_orm/README.md @@ -55,6 +55,16 @@ Let's import User model first: What users do we have in our database? Try this: + >>> User.objects.all() + [] + +No users! lets create a user: + + >>> User.objects.create(username='ola') + + +What users do we now have in our database? Try this: + >>> User.objects.all() []