Self hosted FLOSS fitness/workout, nutrition and weight tracker
Make the __unicode__ method for nutrition plans more intelligent
Roland Geider88319bb17976
diff --git a/wger/nutrition/models.py b/wger/nutrition/models.pyindex b35cee589..43ec8eedb 100644--- a/wger/nutrition/models.py+++ b/wger/nutrition/models.py@@ -74,7 +74,10 @@ class NutritionPlan(models.Model):'''Return a more human-readable representation'''- return u"Nutrition plan for {0}, {1}".format(self.user, self.creation_date)+ if self.description:+ return self.description+ else:+ return _("Nutrition plan")def get_absolute_url(self):'''