mirror of
https://github.com/django/django.git
synced 2025-08-12 14:58:20 +00:00
[1.9.x] Fixed typo in docs/ref/models/querysets.txt
Backport of 838386815f
from master
This commit is contained in:
parent
8f96859e1e
commit
db056b2a63
1 changed files with 1 additions and 1 deletions
|
@ -933,7 +933,7 @@ For example, suppose you have these models::
|
||||||
def __str__(self): # __unicode__ on Python 2
|
def __str__(self): # __unicode__ on Python 2
|
||||||
return "%s (%s)" % (
|
return "%s (%s)" % (
|
||||||
self.name,
|
self.name,
|
||||||
", ".join(topping.name or topping in self.toppings.all()),
|
", ".join(topping.name for topping in self.toppings.all()),
|
||||||
)
|
)
|
||||||
|
|
||||||
and run::
|
and run::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue