minor mealplan cleanups

This commit is contained in:
vabene1111
2020-05-02 14:58:23 +02:00
parent c398fda15c
commit 37f7326f4c
2 changed files with 12 additions and 8 deletions

View File

@ -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)