Self hosted FLOSS fitness/workout, nutrition and weight tracker
remove unused imports, update comments
Ben Southcott09d63328b9ba
diff --git a/wger/nutrition/tests/test_plan.py b/wger/nutrition/tests/test_plan.pyindex 04002a37e..76cc191c5 100644--- a/wger/nutrition/tests/test_plan.py+++ b/wger/nutrition/tests/test_plan.py@@ -208,7 +208,7 @@ class PlanCopyTestCase(WgerTestCase):meal_fields = ("name", "time", "order",)meal_item_fields = ("ingredient", "weight_unit", "order", "amount",)- # test each Plan object's fields are equal+ # test each Plan's fields are equalfor field in plan_fields:self.assertEqual(getattr(orig_plan, field), getattr(copied_plan, field))@@ -216,14 +216,14 @@ class PlanCopyTestCase(WgerTestCase):copied_plan_meals = copied_plan.meal_set.all()for meal_cnt, orig_meal in enumerate(orig_plan_meals):- # test that the fields are equal for each Meal object for each Plan+ # test that the fields are equal for each Meal for each Planfor field in meal_fields:self.assertEqual(getattr(orig_meal, field), getattr(copied_plan_meals[meal_cnt], field))orig_plan_meal_items = orig_plan_meals[meal_cnt].mealitem_set.all()copied_plan_meal_items = copied_plan_meals[meal_cnt].mealitem_set.all()- # test that the fields are equal for each MealItem object for each Meal+ # test that the fields are equal for each MealItem for each Mealfor item_cnt, orig_meal_item in enumerate(orig_plan_meal_items):for field in meal_item_fields:self.assertEqual(getattr(orig_meal_item, field), getattr(copied_plan_meal_items[item_cnt], field))diff --git a/wger/nutrition/views/plan.py b/wger/nutrition/views/plan.pyindex ed60fc922..14369f67b 100644--- a/wger/nutrition/views/plan.py+++ b/wger/nutrition/views/plan.py@@ -16,7 +16,6 @@# Standard Libraryimport logging-from copy import deepcopy# Djangofrom django.contrib.auth.decorators import login_required@@ -43,8 +42,6 @@ from django.views.generic import (UpdateView,)-from django.db import transaction-# Third Partyfrom reportlab.lib import colorsfrom reportlab.lib.pagesizes import A4