Loading docs/ref/models/querysets.txt +1 −1 Original line number Diff line number Diff line Loading @@ -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:: Loading Loading
docs/ref/models/querysets.txt +1 −1 Original line number Diff line number Diff line Loading @@ -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:: Loading