Self hosted FLOSS fitness/workout, nutrition and weight tracker
Also initialise the energy_kilojoule key
Roland Geider6d50b4951811
diff --git a/wger/nutrition/models/meal.py b/wger/nutrition/models/meal.pyindex 6cb16e9e9..e7997c19b 100644--- a/wger/nutrition/models/meal.py+++ b/wger/nutrition/models/meal.py@@ -29,7 +29,6 @@ from wger.utils.fields import Html5TimeField# Localfrom .plan import NutritionPlan-logger = logging.getLogger(__name__)@@ -85,10 +84,11 @@ class Meal(models.Model):"""Sums the nutritional info of all items in the meal- :param use_metric Flag that controls the units used+ :param: use_metric Flag that controls the units used"""nutritional_info = {'energy': 0,+ 'energy_kilojoule': 0,'protein': 0,'carbohydrates': 0,'carbohydrates_sugar': 0,