Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Merge pull request #24 from fourcels/patch-2

ch10 'name__icontains' to 'title__icontains'
  • Loading branch information...
commit 5bbaabe18982711ce2a887442f3bd825048f567b 2 parents 790ecf4 + 60aa4b0
@jacobian jacobian authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 chapter10.rst
4 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.
Something went wrong with that request. Please try again.