diff --git a/cookbook/models.py b/cookbook/models.py index b127f96d7..7384f6863 100644 --- a/cookbook/models.py +++ b/cookbook/models.py @@ -227,7 +227,7 @@ class MealPlan(models.Model): note = models.TextField(blank=True) date = models.DateField() - def __str__(self): + def get_label(self): if self.title: return self.title return str(self.recipe) diff --git a/cookbook/templates/meal_plan.html b/cookbook/templates/meal_plan.html index b4f8f72cf..f0ca3f14e 100644 --- a/cookbook/templates/meal_plan.html +++ b/cookbook/templates/meal_plan.html @@ -9,19 +9,19 @@ {% block content %}