summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/querysets.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index 1c488c7e33..5832e77ed5 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -933,7 +933,7 @@ For example, suppose you have these models::
def __str__(self): # __unicode__ on Python 2
return "%s (%s)" % (
self.name,
- ", ".join(topping.name or topping in self.toppings.all()),
+ ", ".join(topping.name for topping in self.toppings.all()),
)
and run::