Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Cast to unicode, otherwise an exception is thrown

Roland Geiderf83ae2f25821
diff --git a/wger/nutrition/models.py b/wger/nutrition/models.py
index 43ec8eedb..2639d1aa0 100644
--- a/wger/nutrition/models.py
+++ b/wger/nutrition/models.py
@@ -77,7 +77,7 @@ class NutritionPlan(models.Model):
if self.description:
return self.description
else:
- return _("Nutrition plan")
+ return unicode(_("Nutrition plan"))
def get_absolute_url(self):
'''