Self hosted FLOSS fitness/workout, nutrition and weight tracker
Also limit the license name length to 200 characters
Roland Geider4b1a1f14e04e
diff --git a/wger/nutrition/dataclasses.py b/wger/nutrition/dataclasses.pyindex 8bf5e92be..741dbbf1f 100644--- a/wger/nutrition/dataclasses.py+++ b/wger/nutrition/dataclasses.py@@ -70,6 +70,7 @@ class IngredientData:self.name = self.name[:200]self.brand = self.brand[:200]self.common_name = self.common_name[:200]+ self.license_title = self.license_title[:200]# Mass checks (not more than 100g of something per 100g of product etc)macros = [