Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

ch10 'name__icontains' to 'title__icontains' #24

Merged
merged 1 commit into from

2 participants

Kiyan Jacob Kaplan-Moss
Kiyan

No description provided.

Jacob Kaplan-Moss jacobian merged commit 5bbaabe into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 28, 2012
  1. Kiyan
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  chapter10.rst
2  chapter10.rst
View
@@ -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
Something went wrong with that request. Please try again.