Permalink
Browse files

Missed a couple of examples that were using 'where' instead of the ne…

…w 'filter'. Fixed.
  • Loading branch information...
1 parent 529e3d4 commit 2001c5eccaa53f31ea3b8e99f103bc3983a5b984 Raphael Lullis committed Jul 27, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.mkd
View
@@ -315,7 +315,7 @@ Most importantly, Querysets can be chained together. This allows you
to make more complex queries:
~~~~~ {python}
-posts_by_joe = Post.Query.all().where(author='Joe').order_by("view_count")
+posts_by_joe = Post.Query.all().filter(author='Joe').order_by("view_count")
popular_posts = posts_by_joe.gte(view_count=200)
~~~~~
@@ -325,7 +325,7 @@ After all the querying/filtering/sorting, you will probably want to do
something with the results. Querysets can be iterated on:
~~~~~ {python}
-posts_by_joe = Post.Query.all().where(author='Joe').order_by('view_count')
+posts_by_joe = Post.Query.all().filter(author='Joe').order_by('view_count')
for post in posts_by_joe:
print post.title, post.publication_date, post.text
~~~~~

0 comments on commit 2001c5e

Please sign in to comment.