summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAlexkane <akane@songtrust.com>2017-02-24 16:35:08 -0500
committerTim Graham <timograham@gmail.com>2017-02-24 16:35:24 -0500
commitc231e965e7eab56db8199d519813599a06e8ac8b (patch)
treedba5e495caf34938e21a0f2313b8b02f913dde85 /docs/ref
parent22eb15a18c16b93496f6e88ebe3a306daad492b1 (diff)
[1.11.x] Made a few queryset lookup examples consistent.
Backport of b427f0d674362d22c063852754914d9315cbc2fa from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/querysets.txt16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index f5f0fbcc8b..dfd0f07c5c 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -2561,11 +2561,11 @@ Case-sensitive starts-with.
Example::
- Entry.objects.filter(headline__startswith='Will')
+ Entry.objects.filter(headline__startswith='Lennon')
SQL equivalent::
- SELECT ... WHERE headline LIKE 'Will%';
+ SELECT ... WHERE headline LIKE 'Lennon%';
SQLite doesn't support case-sensitive ``LIKE`` statements; ``startswith`` acts
like ``istartswith`` for SQLite.
@@ -2579,11 +2579,11 @@ Case-insensitive starts-with.
Example::
- Entry.objects.filter(headline__istartswith='will')
+ Entry.objects.filter(headline__istartswith='Lennon')
SQL equivalent::
- SELECT ... WHERE headline ILIKE 'Will%';
+ SELECT ... WHERE headline ILIKE 'Lennon%';
.. admonition:: SQLite users
@@ -2600,11 +2600,11 @@ Case-sensitive ends-with.
Example::
- Entry.objects.filter(headline__endswith='cats')
+ Entry.objects.filter(headline__endswith='Lennon')
SQL equivalent::
- SELECT ... WHERE headline LIKE '%cats';
+ SELECT ... WHERE headline LIKE '%Lennon';
.. admonition:: SQLite users
@@ -2621,11 +2621,11 @@ Case-insensitive ends-with.
Example::
- Entry.objects.filter(headline__iendswith='will')
+ Entry.objects.filter(headline__iendswith='Lennon')
SQL equivalent::
- SELECT ... WHERE headline ILIKE '%will'
+ SELECT ... WHERE headline ILIKE '%Lennon'
.. admonition:: SQLite users