mirror of
https://github.com/django/django.git
synced 2024-11-29 14:46:18 +01:00
Fixed typo in docs/ref/models/querysets.txt
This commit is contained in:
parent
36d36818a3
commit
838386815f
@ -923,7 +923,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…
Reference in New Issue
Block a user