Kaydet (Commit) 165772f3 authored tarafından Gary Wilson Jr's avatar Gary Wilson Jr

Comment correction, `get_list` is now `filter`.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst ff1e505a
...@@ -92,7 +92,7 @@ __test__ = {'API_TESTS':""" ...@@ -92,7 +92,7 @@ __test__ = {'API_TESTS':"""
>>> Article.objects.filter(Q(headline__contains='bye'), headline__startswith='Hello') >>> Article.objects.filter(Q(headline__contains='bye'), headline__startswith='Hello')
[<Article: Hello and goodbye>] [<Article: Hello and goodbye>]
# Try some arg queries with operations other than get_list # Try some arg queries with operations other than filter.
>>> Article.objects.get(Q(headline__startswith='Hello'), Q(headline__contains='bye')) >>> Article.objects.get(Q(headline__startswith='Hello'), Q(headline__contains='bye'))
<Article: Hello and goodbye> <Article: Hello and goodbye>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment