mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
[1.10.x] Fixed typo in docs/ref/models/querysets.txt
Backport of 838386815f from master
This commit is contained in:
@@ -923,7 +923,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::
|
||||
|
||||
Reference in New Issue
Block a user