Skip to content

Commit

Permalink
Merge pull request #132 from Mbosco/patch-1
Browse files Browse the repository at this point in the history
Update README.md to demonstrate user creation
  • Loading branch information
olasitarska committed Oct 3, 2014
2 parents 779a4ad + bbdc0b4 commit 7b97d73
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions django_orm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')
<User: ola>

What users do we now have in our database? Try this:

>>> User.objects.all()
[<User: ola>]

Expand Down

0 comments on commit 7b97d73

Please sign in to comment.