def __unicode__(self): string = format_food_unit(self.quantity, self.unit, self.food) if self.preparation: string += ", %s" % self.preparation if self.optional: string += " (optional)" return string
def __unicode__(self): return format_food_unit(self.quantity, self.unit, self.food)