summaryrefslogtreecommitdiff
path: root/docs/ref/models
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2011-10-08 18:07:30 +0000
committerLuke Plant <L.Plant.98@cantab.net>2011-10-08 18:07:30 +0000
commitac6361a3a641ed231e0380d2346114de11f407dc (patch)
tree4b350eae5d65845b2b83ca8173f4ec3e67cd2e16 /docs/ref/models
parentd5803bb5fb1a301a014bb681fedc09e2bcc6967b (diff)
Fixed some ReST errors in docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16945 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/models')
-rw-r--r--docs/ref/models/querysets.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index 238fe64915..11ef73059d 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -605,6 +605,7 @@ following models::
class City(models.Model):
# ...
+ pass
class Person(models.Model):
# ...
@@ -679,7 +680,7 @@ same ``select_related()`` call; they are conflicting options.
.. versionchanged:: 1.2
You can also refer to the reverse direction of a
-:class:`~django.db.models.OneToOneField`` in the list of fields passed to
+:class:`~django.db.models.OneToOneField` in the list of fields passed to
``select_related`` — that is, you can traverse a
:class:`~django.db.models.OneToOneField` back to the object on which the field
is defined. Instead of specifying the field name, use the :attr:`related_name
@@ -760,7 +761,7 @@ and retrieve data using a fresh database query. So, if you write the following:
>>> pizzas = Pizza.objects.prefetch_related('toppings')
>>> [list(pizza.toppings.filter(spicy=True)) for pizza in pizzas]
-...then the fact that `pizza.toppings.all()` has been prefetched will not help
+...then the fact that ``pizza.toppings.all()`` has been prefetched will not help
you - in fact it hurts performance, since you have done a database query that
you haven't used. So use this feature with caution!