Self hosted FLOSS fitness/workout, nutrition and weight tracker
Remove unused imports
Roland Geider182c3d3cdbe9
diff --git a/wger/exercises/urls.py b/wger/exercises/urls.pyindex 5c2d0ed7f..3e028442f 100644--- a/wger/exercises/urls.py+++ b/wger/exercises/urls.py@@ -1,5 +1,4 @@from django.conf.urls import patterns, url-from django.contrib.auth.decorators import permission_requiredfrom django.contrib.auth.decorators import login_requiredfrom wger.exercises.views import exercisesdiff --git a/wger/manager/views/misc.py b/wger/manager/views/misc.pyindex 78c90e897..88e8175aa 100644--- a/wger/manager/views/misc.py+++ b/wger/manager/views/misc.py@@ -37,7 +37,6 @@ from wger.manager.demo import create_demo_entriesfrom wger.manager.demo import create_temporary_userfrom wger.manager.models import DaysOfWeek-from wger.manager.models import Workoutfrom wger.manager.models import Schedulefrom wger.nutrition.models import NutritionPlandiff --git a/wger/manager/views/user.py b/wger/manager/views/user.pyindex f7c14ffea..6bd4d87ab 100644--- a/wger/manager/views/user.py+++ b/wger/manager/views/user.py@@ -15,10 +15,6 @@# You should have received a copy of the GNU Affero General Public Licenseimport logging-import uuid-import datetime-import random-from django.template import RequestContextfrom django.shortcuts import render_to_response@@ -36,24 +32,9 @@ from django.contrib.auth.models import User as Django_Userfrom django.contrib.auth.views import login as django_loginviewfrom django.contrib import messages-from wger.manager.models import DaysOfWeek-from wger.manager.models import Workout-from wger.manager.models import Day-from wger.manager.models import Set-from wger.manager.models import Setting-from wger.manager.models import WorkoutLog--from wger.exercises.models import Exercise--from wger.weight.models import WeightEntry-from wger.manager.forms import UserPreferencesFormfrom wger.manager.forms import UserEmailFormfrom wger.manager.forms import RegistrationForm-from wger.manager.forms import DemoUserForm--from wger.utils.language import load_language-logger = logging.getLogger('wger.custom')diff --git a/wger/nutrition/views/meal.py b/wger/nutrition/views/meal.pyindex 63c4539f1..fc0513b8e 100644--- a/wger/nutrition/views/meal.py+++ b/wger/nutrition/views/meal.py@@ -20,7 +20,6 @@ from django.http import HttpResponseRedirectfrom django.http import HttpResponseForbiddenfrom django.core.urlresolvers import reversefrom django.contrib.auth.decorators import login_required-from django.forms import ModelFormfrom django.utils.translation import ugettext_lazyfrom django.views.generic import CreateView@@ -28,7 +27,6 @@ from django.views.generic import UpdateViewfrom wger.nutrition.models import NutritionPlanfrom wger.nutrition.models import Meal-from wger.nutrition.models import MealItemfrom wger.utils.generic_views import WgerFormMixindiff --git a/wger/nutrition/views/meal_item.py b/wger/nutrition/views/meal_item.pyindex 4e12bbc2d..960c2cb13 100644--- a/wger/nutrition/views/meal_item.py+++ b/wger/nutrition/views/meal_item.py@@ -14,48 +14,24 @@## You should have received a copy of the GNU Affero General Public Licenseimport logging-import jsonfrom django import forms-from django.template import RequestContext-from django.shortcuts import render_to_responsefrom django.shortcuts import get_object_or_404-from django.http import HttpResponsefrom django.http import HttpResponseRedirectfrom django.http import HttpResponseForbidden-from django.core.context_processors import csrffrom django.core.urlresolvers import reverse-from django.core.urlresolvers import reverse_lazyfrom django.contrib.auth.decorators import login_required-from django.utils.translation import ugettext as _from django.utils.translation import ugettext_lazy--from django.views.generic import DeleteViewfrom django.views.generic import CreateViewfrom django.views.generic import UpdateView-from django.views.generic import ListView-from wger.nutrition.forms import UnitChooserForm-from wger.nutrition.models import NutritionPlanfrom wger.nutrition.models import Mealfrom wger.nutrition.models import MealItemfrom wger.nutrition.models import Ingredient-from wger.nutrition.models import WeightUnitfrom wger.nutrition.models import IngredientWeightUnit-from wger.nutrition.models import MEALITEM_WEIGHT_GRAM-from wger.nutrition.models import MEALITEM_WEIGHT_UNIT--from reportlab.lib.styles import getSampleStyleSheet-from reportlab.lib.pagesizes import A4, cm-from reportlab.platypus import Paragraph, SimpleDocTemplate, Table-from reportlab.lib import colors-from wger import get_version-from wger.utils import helpersfrom wger.utils.generic_views import WgerFormMixin-from wger.utils.generic_views import WgerDeleteMixin-from wger.utils.language import load_ingredient_languageslogger = logging.getLogger('wger.custom')diff --git a/wger/nutrition/views/plan.py b/wger/nutrition/views/plan.pyindex 92e10bca1..09b47a697 100644--- a/wger/nutrition/views/plan.py+++ b/wger/nutrition/views/plan.py@@ -25,7 +25,6 @@ from django.core.context_processors import csrffrom django.core.urlresolvers import reversefrom django.core.urlresolvers import reverse_lazyfrom django.contrib.auth.decorators import login_required-from django.forms import ModelFormfrom django.utils.translation import ugettext as _from django.utils.translation import ugettext_lazy@@ -36,7 +35,6 @@ from wger.nutrition.models import NutritionPlanfrom wger.nutrition.models import MEALITEM_WEIGHT_GRAMfrom wger.nutrition.models import MEALITEM_WEIGHT_UNIT-from reportlab.lib.styles import getSampleStyleSheetfrom reportlab.lib.pagesizes import A4, cmfrom reportlab.platypus import Paragraph, SimpleDocTemplate, Tablefrom reportlab.lib import colorsdiff --git a/wger/utils/middleware.py b/wger/utils/middleware.pyindex a46c874b1..ace6bc827 100644--- a/wger/utils/middleware.py+++ b/wger/utils/middleware.py@@ -21,7 +21,6 @@ user automatically for anonymous users.import logging-from django.core.cache import cachefrom django.contrib import authfrom django.utils.functional import SimpleLazyObjectfrom django.contrib.auth import login as django_login