This repository has been archived by the owner. It is now read-only.
Browse files

Merge pull request #24 from fourcels/patch-2

ch10 'name__icontains' to 'title__icontains'
  • Loading branch information...
jacobian committed Apr 14, 2013
2 parents 790ecf4 + 60aa4b0 commit 5bbaabe18982711ce2a887442f3bd825048f567b
Showing with 2 additions and 2 deletions.
  1. +2 −2 chapter10.rst
@@ -80,7 +80,7 @@ Chapter 5), and it can be filtered and sliced like any other ``QuerySet``.
For example::
>>> p = Publisher.objects.get(name='Apress Publishing')
- >>> p.book_set.filter(name__icontains='django')
+ >>> p.book_set.filter(title__icontains='django')
[<Book: The Django Book>, <Book: Pro Django>]
The attribute name ``book_set`` is generated by appending the lower case
@@ -598,4 +598,4 @@ What's Next?
In the `next chapter`_, we'll show you Django's "generic views" framework, which
lets you save time in building Web sites that follow common patterns.
-.. _next chapter: chapter11.rst/
+.. _next chapter: chapter11.rst/

0 comments on commit 5bbaabe

Please sign in to comment.