Kaydet (Commit) 83838681 authored tarafından Nick Smith's avatar Nick Smith Kaydeden (comit) Tim Graham

Fixed typo in docs/ref/models/querysets.txt

üst 36d36818
...@@ -923,7 +923,7 @@ For example, suppose you have these models:: ...@@ -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::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment