Self hosted FLOSS fitness/workout, nutrition and weight tracker
Make use of application name more consistent
Roland Geider25b79ab31d19
diff --git a/extras/scripts/filter-fixtures.py b/extras/scripts/filter-fixtures.pyindex 052f2248a..2e8f403e6 100644--- a/extras/scripts/filter-fixtures.py+++ b/extras/scripts/filter-fixtures.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/config/management/commands/extract-categories-i18n.py b/wger/config/management/commands/extract-categories-i18n.pyindex 9867f0cdc..5d55f119f 100644--- a/wger/config/management/commands/extract-categories-i18n.py+++ b/wger/config/management/commands/extract-categories-i18n.py@@ -1,13 +1,13 @@# -*- coding: utf-8 *-*-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/config/models.py b/wger/config/models.pyindex 60b1b710d..d204707a1 100644--- a/wger/config/models.py+++ b/wger/config/models.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -27,7 +27,7 @@ from wger.utils.cache import delete_template_fragment_cachefrom wger.utils.cache import cache_mapper-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class LanguageConfig(models.Model):diff --git a/wger/config/templates/language/overview.html b/wger/config/templates/language/overview.htmlindex 1d9d89627..2ac8eea32 100644--- a/wger/config/templates/language/overview.html+++ b/wger/config/templates/language/overview.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{% trans "Languages" %}{% endblock %}diff --git a/wger/config/templates/language/view.html b/wger/config/templates/language/view.htmlindex 27574b372..1025e8857 100644--- a/wger/config/templates/language/view.html+++ b/wger/config/templates/language/view.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{{ view_language }}{% endblock %}diff --git a/wger/config/tests/language.py b/wger/config/tests/language.pyindex caf031819..6523e2fa1 100644--- a/wger/config/tests/language.py+++ b/wger/config/tests/language.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/config/tests/language_config.py b/wger/config/tests/language_config.pyindex 117cf7e13..6f33dea29 100644--- a/wger/config/tests/language_config.py+++ b/wger/config/tests/language_config.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/config/views/language_config.py b/wger/config/views/language_config.pyindex 252efeef7..52a97c786 100644--- a/wger/config/views/language_config.py+++ b/wger/config/views/language_config.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -22,13 +22,13 @@ from django.utils.translation import ugettext as _from django.views.generic import UpdateViewfrom wger.config.models import LanguageConfig-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixin-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')-class LanguageConfigUpdateView(YamlFormMixin, UpdateView):+class LanguageConfigUpdateView(WgerFormMixin, UpdateView):'''Generic view to edit a language config'''diff --git a/wger/config/views/languages.py b/wger/config/views/languages.pyindex 739680660..eeda3bdb6 100644--- a/wger/config/views/languages.py+++ b/wger/config/views/languages.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -31,11 +31,11 @@ from wger.exercises.models import Languagefrom wger.utils.generic_views import YamlDeleteMixin-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixinfrom wger.utils.generic_views import WgerPermissionMixin-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class LanguageListView(WgerPermissionMixin, ListView):@@ -55,7 +55,7 @@ class LanguageDetailView(WgerPermissionMixin, DetailView):context_object_name = 'view_language'-class LanguageCreateView(YamlFormMixin, CreateView):+class LanguageCreateView(WgerFormMixin, CreateView):'''Generic view to add a new language'''@@ -86,7 +86,7 @@ class LanguageDeleteView(YamlDeleteMixin, DeleteView):return context-class LanguageEditView(YamlFormMixin, UpdateView):+class LanguageEditView(WgerFormMixin, UpdateView):'''Generic view to update an existing language'''diff --git a/wger/exercises/admin.py b/wger/exercises/admin.pyindex 988e0ddd8..71f523f0c 100644--- a/wger/exercises/admin.py+++ b/wger/exercises/admin.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/exercises/management/commands/submitted-exercises.py b/wger/exercises/management/commands/submitted-exercises.pyindex 19faecabe..1d648ea26 100644--- a/wger/exercises/management/commands/submitted-exercises.py+++ b/wger/exercises/management/commands/submitted-exercises.py@@ -1,13 +1,13 @@# -*- coding: utf-8 *-*-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/exercises/models.py b/wger/exercises/models.pyindex a9d4a17fe..057252e6d 100644--- a/wger/exercises/models.py+++ b/wger/exercises/models.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/exercises/sitemap.py b/wger/exercises/sitemap.pyindex 478408348..1634aa68e 100644--- a/wger/exercises/sitemap.py+++ b/wger/exercises/sitemap.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/exercises/templates/exercise/pending.html b/wger/exercises/templates/exercise/pending.htmlindex 86a813a99..024a656db 100644--- a/wger/exercises/templates/exercise/pending.html+++ b/wger/exercises/templates/exercise/pending.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{% trans "Pending exercises" %}{% endblock %}diff --git a/wger/exercises/templates/overview.html b/wger/exercises/templates/overview.htmlindex 77b9c6ab5..5dca1cf97 100644--- a/wger/exercises/templates/overview.html+++ b/wger/exercises/templates/overview.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% load cache %}<!--diff --git a/wger/exercises/templates/view.html b/wger/exercises/templates/view.htmlindex dec40f6f7..9a1300ee5 100644--- a/wger/exercises/templates/view.html+++ b/wger/exercises/templates/view.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% load cache %}{% block header %}diff --git a/wger/exercises/tests/categories.py b/wger/exercises/tests/categories.pyindex d11c0aab9..bf7083af3 100644--- a/wger/exercises/tests/categories.py+++ b/wger/exercises/tests/categories.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/exercises/tests/exercise.py b/wger/exercises/tests/exercise.pyindex 331e33e65..be52b8c8f 100644--- a/wger/exercises/tests/exercise.py+++ b/wger/exercises/tests/exercise.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/exercises/tests/exercise_comments.py b/wger/exercises/tests/exercise_comments.pyindex 369d84b90..e62327a64 100644--- a/wger/exercises/tests/exercise_comments.py+++ b/wger/exercises/tests/exercise_comments.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/exercises/tests/muscles.py b/wger/exercises/tests/muscles.pyindex 6904605e9..15a722820 100644--- a/wger/exercises/tests/muscles.py+++ b/wger/exercises/tests/muscles.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/exercises/tests/submitted_exercise.py b/wger/exercises/tests/submitted_exercise.pyindex 8cac3ad91..d96bb1b52 100644--- a/wger/exercises/tests/submitted_exercise.py+++ b/wger/exercises/tests/submitted_exercise.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/exercises/views/categories.py b/wger/exercises/views/categories.pyindex 7089172f6..a9a2ce238 100644--- a/wger/exercises/views/categories.py+++ b/wger/exercises/views/categories.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -26,12 +26,12 @@ from django.views.generic import UpdateViewfrom wger.exercises.models import ExerciseCategory-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixinfrom wger.utils.generic_views import YamlDeleteMixinfrom wger.utils.language import load_language-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')# ************************@@ -39,7 +39,7 @@ logger = logging.getLogger('workout_manager.custom')# ************************-class ExerciseCategoryAddView(YamlFormMixin, CreateView):+class ExerciseCategoryAddView(WgerFormMixin, CreateView):'''Generic view to add a new exercise category'''@@ -56,7 +56,7 @@ class ExerciseCategoryAddView(YamlFormMixin, CreateView):return super(ExerciseCategoryAddView, self).form_valid(form)-class ExerciseCategoryUpdateView(YamlFormMixin, UpdateView):+class ExerciseCategoryUpdateView(WgerFormMixin, UpdateView):'''Generic view to update an existing exercise category'''diff --git a/wger/exercises/views/comments.py b/wger/exercises/views/comments.pyindex 86c10a039..0f9f3b5e2 100644--- a/wger/exercises/views/comments.py+++ b/wger/exercises/views/comments.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -43,12 +43,12 @@ from wger.exercises.models import ExerciseCommentfrom wger.exercises.models import ExerciseCategoryfrom wger.exercises.models import Muscle-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixinfrom wger.utils.generic_views import YamlDeleteMixinfrom wger.utils.language import load_language-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')# ************************@@ -56,7 +56,7 @@ logger = logging.getLogger('workout_manager.custom')# ************************-class ExerciseCommentEditView(YamlFormMixin, UpdateView):+class ExerciseCommentEditView(WgerFormMixin, UpdateView):'''Generic view to update an existing exercise comment'''@@ -77,7 +77,7 @@ class ExerciseCommentEditView(YamlFormMixin, UpdateView):return context-class ExerciseCommentAddView(YamlFormMixin, CreateView):+class ExerciseCommentAddView(WgerFormMixin, CreateView):'''Generic view to add a new exercise comment'''diff --git a/wger/exercises/views/exercises.py b/wger/exercises/views/exercises.pyindex c9f735fdc..4af3c163c 100644--- a/wger/exercises/views/exercises.py+++ b/wger/exercises/views/exercises.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -45,7 +45,7 @@ from wger.manager.models import WorkoutLogfrom wger.exercises.models import Exercisefrom wger.exercises.models import ExerciseCategory-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixinfrom wger.utils.generic_views import YamlDeleteMixinfrom wger.utils.language import load_languagefrom wger.utils.language import load_item_languages@@ -53,7 +53,7 @@ from wger.utils.cache import cache_mapperfrom wger.config.models import LanguageConfig-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')def overview(request):@@ -142,7 +142,7 @@ def view(request, id, slug=None):context_instance=RequestContext(request))-class ExercisesEditAddView(YamlFormMixin):+class ExercisesEditAddView(WgerFormMixin):'''Generic view to subclass from for exercise adding and editing, since theyshare all this settingsdiff --git a/wger/exercises/views/muscles.py b/wger/exercises/views/muscles.pyindex 38473767a..a06619647 100644--- a/wger/exercises/views/muscles.py+++ b/wger/exercises/views/muscles.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -27,10 +27,10 @@ from django.views.generic import UpdateViewfrom wger.exercises.models import Muscle-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixinfrom wger.utils.generic_views import YamlDeleteMixin-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class MuscleListView(ListView):@@ -43,7 +43,7 @@ class MuscleListView(ListView):template_name = 'muscles/overview.html'-class MuscleAddView(YamlFormMixin, CreateView):+class MuscleAddView(WgerFormMixin, CreateView):'''Generic view to add a new muscle'''@@ -54,7 +54,7 @@ class MuscleAddView(YamlFormMixin, CreateView):form_action = reverse_lazy('muscle-add')-class MuscleUpdateView(YamlFormMixin, UpdateView):+class MuscleUpdateView(WgerFormMixin, UpdateView):'''Generic view to update an existing muscle'''diff --git a/wger/manager/admin.py b/wger/manager/admin.pyindex de13e5a81..f1e03ac30 100644--- a/wger/manager/admin.py+++ b/wger/manager/admin.py@@ -1,12 +1,12 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/manager/demo.py b/wger/manager/demo.pyindex 29f847c91..aea7036c3 100644--- a/wger/manager/demo.py+++ b/wger/manager/demo.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -41,7 +41,7 @@ from wger.nutrition.models import IngredientWeightUnitfrom wger.utils.language import load_language-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')def create_temporary_user():diff --git a/wger/manager/forms.py b/wger/manager/forms.pyindex bd737ea4f..4576ef7cd 100644--- a/wger/manager/forms.py+++ b/wger/manager/forms.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/manager/management/commands/delete-temp-users.py b/wger/manager/management/commands/delete-temp-users.pyindex 822150aff..a03cb060c 100644--- a/wger/manager/management/commands/delete-temp-users.py+++ b/wger/manager/management/commands/delete-temp-users.py@@ -1,13 +1,13 @@# -*- coding: utf-8 *-*-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/manager/models.py b/wger/manager/models.pyindex 115f594f2..de1f5be8d 100644--- a/wger/manager/models.py+++ b/wger/manager/models.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -36,7 +36,7 @@ from wger.utils.helpers import disable_for_loaddatafrom wger.utils.cache import delete_template_fragment_cachefrom wger.utils.cache import cache_mapper-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')#diff --git a/wger/manager/pdf.py b/wger/manager/pdf.pyindex 5887f7792..f7459f536 100644--- a/wger/manager/pdf.py+++ b/wger/manager/pdf.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -32,7 +32,7 @@ from reportlab.lib import colorsfrom wger import get_version-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')@login_requireddiff --git a/wger/manager/templates/day/log.html b/wger/manager/templates/day/log.htmlindex e725b987a..498b8e4b7 100644--- a/wger/manager/templates/day/log.html+++ b/wger/manager/templates/day/log.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{% trans "New weight log" %} – {{day.description}}{% endblock %}diff --git a/wger/manager/templates/day/view.html b/wger/manager/templates/day/view.htmlindex 29524c907..52a50036e 100644--- a/wger/manager/templates/day/view.html+++ b/wger/manager/templates/day/view.html@@ -1,4 +1,4 @@{% load i18n %}-{% load manager_extras %}+{% load wger_extras %}{% render_day day %}\ No newline at end of filediff --git a/wger/manager/templates/form.html b/wger/manager/templates/form.htmlindex 284103ad4..2ef44e010 100644--- a/wger/manager/templates/form.html+++ b/wger/manager/templates/form.html@@ -1,7 +1,7 @@{% extends "base.html" %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block header %}diff --git a/wger/manager/templates/misc/contact.html b/wger/manager/templates/misc/contact.htmlindex 3dcdfb61d..2726c5415 100644--- a/wger/manager/templates/misc/contact.html+++ b/wger/manager/templates/misc/contact.html@@ -1,6 +1,6 @@{% extends "base_wide.html" %}{% load i18n %}-{% load manager_extras %}+{% load wger_extras %}{% block title%}{% trans "Get in touch" %}{% endblock %}diff --git a/wger/manager/templates/set/add.html b/wger/manager/templates/set/add.htmlindex d0638bc9a..17aeb6c5b 100644--- a/wger/manager/templates/set/add.html+++ b/wger/manager/templates/set/add.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}<!--diff --git a/wger/manager/templates/set/edit.html b/wger/manager/templates/set/edit.htmlindex 5e5cbc749..848c3678b 100644--- a/wger/manager/templates/set/edit.html+++ b/wger/manager/templates/set/edit.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}<!--diff --git a/wger/manager/templates/set/formset.html b/wger/manager/templates/set/formset.htmlindex 3c0fb44c9..dc672735d 100644--- a/wger/manager/templates/set/formset.html+++ b/wger/manager/templates/set/formset.html@@ -1,4 +1,4 @@-{% load manager_extras %}+{% load wger_extras %}{% load i18n %}<div id="formset-exercise-{{exercise.id}}" style="margin-top: 1em;"><h4>{{exercise}}</h4>diff --git a/wger/manager/templates/tags/render_day.html b/wger/manager/templates/tags/render_day.htmlindex 61fac3400..79a8ef148 100644--- a/wger/manager/templates/tags/render_day.html+++ b/wger/manager/templates/tags/render_day.html@@ -1,7 +1,7 @@{% load i18n %}{% load url from future %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}<script>$(document).ready(function() {diff --git a/wger/manager/templates/template.html b/wger/manager/templates/template.htmlindex bb88c69bc..c93ce35ef 100644--- a/wger/manager/templates/template.html+++ b/wger/manager/templates/template.html@@ -3,7 +3,7 @@{% load browserid %}{% load url from future %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}<html lang="{{language.short_name}}"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />diff --git a/wger/manager/templates/user/change_password.html b/wger/manager/templates/user/change_password.htmlindex 6c8ea078d..b2db039f6 100644--- a/wger/manager/templates/user/change_password.html+++ b/wger/manager/templates/user/change_password.html@@ -1,7 +1,7 @@{% extends "base.html" %}{% load url from future %}{% load i18n %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{% trans "Change password" %}{% endblock %}diff --git a/wger/manager/templates/user/login.html b/wger/manager/templates/user/login.htmlindex 55584f59f..ba33b101a 100644--- a/wger/manager/templates/user/login.html+++ b/wger/manager/templates/user/login.html@@ -3,7 +3,7 @@{% load browserid %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block title %} {% trans "Login" %}{% endblock %}diff --git a/wger/manager/templates/user/password_reset_confirm.html b/wger/manager/templates/user/password_reset_confirm.htmlindex adf5fb275..d886e1f3b 100644--- a/wger/manager/templates/user/password_reset_confirm.html+++ b/wger/manager/templates/user/password_reset_confirm.html@@ -1,6 +1,6 @@{% extends "base.html" %}{% load i18n %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{% trans "Password reset confirmation" %}{% endblock %}diff --git a/wger/manager/templates/user/password_reset_form.html b/wger/manager/templates/user/password_reset_form.htmlindex b8c31326e..00d59e710 100644--- a/wger/manager/templates/user/password_reset_form.html+++ b/wger/manager/templates/user/password_reset_form.html@@ -1,6 +1,6 @@{% extends "base.html" %}{% load i18n %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{% trans "Password reset" %}{% endblock %}diff --git a/wger/manager/templates/user/preferences.html b/wger/manager/templates/user/preferences.htmlindex ad1c9adb5..904aba531 100644--- a/wger/manager/templates/user/preferences.html+++ b/wger/manager/templates/user/preferences.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{% trans "Preferences" %}{% endblock %}diff --git a/wger/manager/templates/workout/log.html b/wger/manager/templates/workout/log.htmlindex 6d1014014..cca3770c8 100644--- a/wger/manager/templates/workout/log.html+++ b/wger/manager/templates/workout/log.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{% trans "Weight log for workout" %}{% endblock %}diff --git a/wger/manager/templates/workout/view.html b/wger/manager/templates/workout/view.htmlindex a816b8f57..9a3414494 100644--- a/wger/manager/templates/workout/view.html+++ b/wger/manager/templates/workout/view.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% load cache %}{% block title %}{% trans "Workout" %} – {{ workout.creation_date }}{% endblock %}diff --git a/wger/manager/templatetags/manager_extras.py b/wger/manager/templatetags/wger_extras.pysimilarity index 95%rename from wger/manager/templatetags/manager_extras.pyrename to wger/manager/templatetags/wger_extras.pyindex 7f2680de3..30f9023bf 100644--- a/wger/manager/templatetags/manager_extras.py+++ b/wger/manager/templatetags/wger_extras.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/manager/tests/change_password.py b/wger/manager/tests/change_password.pyindex 34a3f8178..0d194b8fb 100644--- a/wger/manager/tests/change_password.py+++ b/wger/manager/tests/change_password.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -19,7 +19,7 @@ from django.contrib.auth.models import Userfrom wger.manager.tests.testcase import WorkoutManagerTestCase-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class ChangePasswordTestCase(WorkoutManagerTestCase):diff --git a/wger/manager/tests/copy_workout.py b/wger/manager/tests/copy_workout.pyindex 35b03025f..26b826204 100644--- a/wger/manager/tests/copy_workout.py+++ b/wger/manager/tests/copy_workout.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -19,7 +19,7 @@ from django.core.urlresolvers import reversefrom wger.manager.models import Workoutfrom wger.manager.tests.testcase import WorkoutManagerTestCase-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class CopyWorkoutTestCase(WorkoutManagerTestCase):diff --git a/wger/manager/tests/day.py b/wger/manager/tests/day.pyindex b99fba3de..5259e072f 100644--- a/wger/manager/tests/day.py+++ b/wger/manager/tests/day.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/manager/tests/feedback.py b/wger/manager/tests/feedback.pyindex b22679a6d..7bfcb2af4 100644--- a/wger/manager/tests/feedback.py+++ b/wger/manager/tests/feedback.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/manager/tests/index.py b/wger/manager/tests/index.pyindex d548e6cc4..94402e648 100644--- a/wger/manager/tests/index.py+++ b/wger/manager/tests/index.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/manager/tests/pdf.py b/wger/manager/tests/pdf.pyindex 4a14690fe..adc082411 100644--- a/wger/manager/tests/pdf.py+++ b/wger/manager/tests/pdf.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/manager/tests/preferences.py b/wger/manager/tests/preferences.pyindex bee9b72e2..cdcdf4b63 100644--- a/wger/manager/tests/preferences.py+++ b/wger/manager/tests/preferences.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -18,7 +18,7 @@ from django.core.urlresolvers import reversefrom wger.manager.tests.testcase import WorkoutManagerTestCase-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class PreferencesTestCase(WorkoutManagerTestCase):diff --git a/wger/manager/tests/registration.py b/wger/manager/tests/registration.pyindex 6ddd66b7e..29ef07f10 100644--- a/wger/manager/tests/registration.py+++ b/wger/manager/tests/registration.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -19,7 +19,7 @@ from django.contrib.auth.models import Userfrom wger.manager.tests.testcase import WorkoutManagerTestCase-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class RegistrationTestCase(WorkoutManagerTestCase):diff --git a/wger/manager/tests/schedule.py b/wger/manager/tests/schedule.pyindex fdf03f9ff..a76c190ff 100644--- a/wger/manager/tests/schedule.py+++ b/wger/manager/tests/schedule.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -28,7 +28,7 @@ from wger.manager.tests.testcase import WorkoutManagerDeleteTestCasefrom wger.manager.tests.testcase import WorkoutManagerEditTestCasefrom wger.manager.tests.testcase import WorkoutManagerAddTestCase-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class CreateScheduleTestCase(WorkoutManagerAddTestCase):diff --git a/wger/manager/tests/schedule_step.py b/wger/manager/tests/schedule_step.pyindex c979bea91..cb72141d7 100644--- a/wger/manager/tests/schedule_step.py+++ b/wger/manager/tests/schedule_step.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/manager/tests/set.py b/wger/manager/tests/set.pyindex d86720b48..e617310d8 100644--- a/wger/manager/tests/set.py+++ b/wger/manager/tests/set.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -29,7 +29,7 @@ from wger.manager.tests.testcase import WorkoutManagerAddTestCasefrom wger.utils.cache import get_template_cache_name-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class SetAddTestCase(WorkoutManagerAddTestCase):diff --git a/wger/manager/tests/sitemap.py b/wger/manager/tests/sitemap.pyindex bf51fc9ab..743695f1a 100644--- a/wger/manager/tests/sitemap.py+++ b/wger/manager/tests/sitemap.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/manager/tests/temporary_users.py b/wger/manager/tests/temporary_users.pyindex c496ef3c0..4435af94c 100644--- a/wger/manager/tests/temporary_users.py+++ b/wger/manager/tests/temporary_users.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/manager/tests/testcase.py b/wger/manager/tests/testcase.pyindex 945c24ba1..c04643304 100644--- a/wger/manager/tests/testcase.py+++ b/wger/manager/tests/testcase.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/manager/tests/weight_log.py b/wger/manager/tests/weight_log.pyindex 5db4da599..d63c144fb 100644--- a/wger/manager/tests/weight_log.py+++ b/wger/manager/tests/weight_log.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -21,7 +21,7 @@ from wger.manager.models import WorkoutLogfrom wger.manager.tests.testcase import WorkoutManagerTestCase-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class WeightLogTestCase(WorkoutManagerTestCase):diff --git a/wger/manager/tests/workout.py b/wger/manager/tests/workout.pyindex 52fe3d7a7..382b3a603 100644--- a/wger/manager/tests/workout.py+++ b/wger/manager/tests/workout.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/manager/views/day.py b/wger/manager/views/day.pyindex 115eec487..d81fec1ad 100644--- a/wger/manager/views/day.py+++ b/wger/manager/views/day.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -35,16 +35,16 @@ from wger.manager.models import Dayfrom wger.manager.forms import DayForm-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixin-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')# ************************# Day functions# ************************-class DayView(YamlFormMixin):+class DayView(WgerFormMixin):'''Base generic view for exercise day'''diff --git a/wger/manager/views/log.py b/wger/manager/views/log.pyindex 4560384b7..d21c3467c 100644--- a/wger/manager/views/log.py+++ b/wger/manager/views/log.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -39,16 +39,16 @@ from wger.manager.models import WorkoutLogfrom wger.manager.forms import HelperDateFormfrom wger.manager.forms import WorkoutLogForm-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixin-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')# ************************# Log functions# ************************-class WorkoutLogUpdateView(YamlFormMixin, UpdateView):+class WorkoutLogUpdateView(WgerFormMixin, UpdateView):'''Generic view to edit an existing workout log weight entry'''diff --git a/wger/manager/views/misc.py b/wger/manager/views/misc.pyindex aab6aa5b3..88b3909ba 100644--- a/wger/manager/views/misc.py+++ b/wger/manager/views/misc.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -45,7 +45,7 @@ from wger.nutrition.models import NutritionPlanfrom wger.weight.models import WeightEntry-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')# ************************diff --git a/wger/manager/views/schedule.py b/wger/manager/views/schedule.pyindex 620a5d1c8..6abbe2be6 100644--- a/wger/manager/views/schedule.py+++ b/wger/manager/views/schedule.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -41,11 +41,11 @@ from wger.manager.forms import WorkoutFormfrom wger.manager.forms import WorkoutCopyForm-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixinfrom wger.utils.generic_views import YamlDeleteMixin-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')@login_required@@ -84,7 +84,7 @@ def view(request, pk):context_instance=RequestContext(request))-class ScheduleCreateView(YamlFormMixin, CreateView):+class ScheduleCreateView(WgerFormMixin, CreateView):'''Creates a new workout schedule'''@@ -115,7 +115,7 @@ class ScheduleDeleteView(YamlDeleteMixin, DeleteView):messages = ugettext_lazy('Schedule was successfully deleted')-class ScheduleEditView(YamlFormMixin, UpdateView):+class ScheduleEditView(WgerFormMixin, UpdateView):'''Generic view to update an existing workout routine'''diff --git a/wger/manager/views/schedule_step.py b/wger/manager/views/schedule_step.pyindex 3b4acdcfa..c1e9e26d7 100644--- a/wger/manager/views/schedule_step.py+++ b/wger/manager/views/schedule_step.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -43,14 +43,14 @@ from wger.manager.forms import WorkoutFormfrom wger.manager.forms import WorkoutCopyForm-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixinfrom wger.utils.generic_views import YamlDeleteMixin-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')-class StepCreateView(YamlFormMixin, CreateView):+class StepCreateView(WgerFormMixin, CreateView):'''Creates a new workout schedule'''@@ -94,7 +94,7 @@ class StepCreateView(YamlFormMixin, CreateView):return super(StepCreateView, self).form_valid(form)-class StepEditView(YamlFormMixin, UpdateView):+class StepEditView(WgerFormMixin, UpdateView):'''Generic view to update an existing schedule step'''diff --git a/wger/manager/views/set.py b/wger/manager/views/set.pyindex 513d25362..cdb2f3793 100644--- a/wger/manager/views/set.py+++ b/wger/manager/views/set.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -46,10 +46,10 @@ from wger.exercises.models import Exercisefrom wger.manager.forms import SetForm-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixinfrom wger.utils.generic_views import YamlDeleteMixin-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')# ************************diff --git a/wger/manager/views/user.py b/wger/manager/views/user.pyindex da872fd35..f7c14ffea 100644--- a/wger/manager/views/user.py+++ b/wger/manager/views/user.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -55,7 +55,7 @@ from wger.manager.forms import DemoUserFormfrom wger.utils.language import load_language-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')def login(request):diff --git a/wger/manager/views/workout.py b/wger/manager/views/workout.pyindex 8b5f947d8..9e4370df1 100644--- a/wger/manager/views/workout.py+++ b/wger/manager/views/workout.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -36,11 +36,11 @@ from wger.manager.models import Workoutfrom wger.manager.forms import WorkoutFormfrom wger.manager.forms import WorkoutCopyForm-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixinfrom wger.utils.generic_views import YamlDeleteMixinfrom wger.utils.cache import cache_mapper-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')# ************************@@ -212,7 +212,7 @@ class WorkoutDeleteView(YamlDeleteMixin, DeleteView):messages = ugettext_lazy('Workout was successfully deleted')-class WorkoutEditView(YamlFormMixin, UpdateView):+class WorkoutEditView(WgerFormMixin, UpdateView):'''Generic view to update an existing workout routine'''diff --git a/wger/nutrition/forms.py b/wger/nutrition/forms.pyindex 6bdeec08d..83a2943b5 100644--- a/wger/nutrition/forms.py+++ b/wger/nutrition/forms.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -20,7 +20,7 @@ from django import formsfrom wger.nutrition.models import IngredientWeightUnit-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class UnitChooserForm(forms.Form):diff --git a/wger/nutrition/models.py b/wger/nutrition/models.pyindex 4528271c1..d2073d9cf 100644--- a/wger/nutrition/models.py+++ b/wger/nutrition/models.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -36,7 +36,7 @@ from wger.utils.cache import cache_mapperMEALITEM_WEIGHT_GRAM = '1'MEALITEM_WEIGHT_UNIT = '2'-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class NutritionPlan(models.Model):diff --git a/wger/nutrition/sitemap.py b/wger/nutrition/sitemap.pyindex 295c201ef..600d982b1 100644--- a/wger/nutrition/sitemap.py+++ b/wger/nutrition/sitemap.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/nutrition/templates/ingredient/overview.html b/wger/nutrition/templates/ingredient/overview.htmlindex 5fc08261d..ebee71876 100644--- a/wger/nutrition/templates/ingredient/overview.html+++ b/wger/nutrition/templates/ingredient/overview.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% load cache %}{% block header %}diff --git a/wger/nutrition/templates/ingredient/pending.html b/wger/nutrition/templates/ingredient/pending.htmlindex 59d762260..829135689 100644--- a/wger/nutrition/templates/ingredient/pending.html+++ b/wger/nutrition/templates/ingredient/pending.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{% trans "Pending ingredients" %}{% endblock %}diff --git a/wger/nutrition/templates/ingredient/view.html b/wger/nutrition/templates/ingredient/view.htmlindex e06cc5350..b5710aec6 100644--- a/wger/nutrition/templates/ingredient/view.html+++ b/wger/nutrition/templates/ingredient/view.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{{ingredient.name}}{% endblock %}diff --git a/wger/nutrition/templates/meal_item/edit.html b/wger/nutrition/templates/meal_item/edit.htmlindex bdf8eaff2..b8e694c61 100644--- a/wger/nutrition/templates/meal_item/edit.html+++ b/wger/nutrition/templates/meal_item/edit.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{% trans "Edit meal item" %}{% endblock %}diff --git a/wger/nutrition/templates/units/list.html b/wger/nutrition/templates/units/list.htmlindex 8c304bd23..4b46ec19b 100644--- a/wger/nutrition/templates/units/list.html+++ b/wger/nutrition/templates/units/list.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{% trans "Ingredient weight units" %}{% endblock %}diff --git a/wger/nutrition/tests/copy_plan.py b/wger/nutrition/tests/copy_plan.pyindex 3de8f20b7..3317485a3 100644--- a/wger/nutrition/tests/copy_plan.py+++ b/wger/nutrition/tests/copy_plan.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/nutrition/tests/ingredient.py b/wger/nutrition/tests/ingredient.pyindex ab763bdfa..a854ecf80 100644--- a/wger/nutrition/tests/ingredient.py+++ b/wger/nutrition/tests/ingredient.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/nutrition/tests/ingredient_overview.py b/wger/nutrition/tests/ingredient_overview.pyindex cf4e5a6cf..cc12a1a8b 100644--- a/wger/nutrition/tests/ingredient_overview.py+++ b/wger/nutrition/tests/ingredient_overview.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/nutrition/tests/meal.py b/wger/nutrition/tests/meal.pyindex a609508dd..1eb4788b9 100644--- a/wger/nutrition/tests/meal.py+++ b/wger/nutrition/tests/meal.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/nutrition/tests/meal_item.py b/wger/nutrition/tests/meal_item.pyindex fa235f295..f933c99bc 100644--- a/wger/nutrition/tests/meal_item.py+++ b/wger/nutrition/tests/meal_item.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/nutrition/tests/nutritional_calculations.py b/wger/nutrition/tests/nutritional_calculations.pyindex 33efbf14a..1e7b400fd 100644--- a/wger/nutrition/tests/nutritional_calculations.py+++ b/wger/nutrition/tests/nutritional_calculations.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -19,7 +19,7 @@ import decimalfrom wger.nutrition import modelsfrom wger.manager.tests.testcase import WorkoutManagerTestCase-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class NutritionalValuesCalculationsTestCase(WorkoutManagerTestCase):diff --git a/wger/nutrition/tests/pdf.py b/wger/nutrition/tests/pdf.pyindex d8861a95b..546957659 100644--- a/wger/nutrition/tests/pdf.py+++ b/wger/nutrition/tests/pdf.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/nutrition/tests/plan.py b/wger/nutrition/tests/plan.pyindex 2880a9ea2..4928dbac0 100644--- a/wger/nutrition/tests/plan.py+++ b/wger/nutrition/tests/plan.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/nutrition/tests/submitted_ingredient.py b/wger/nutrition/tests/submitted_ingredient.pyindex f4c762338..f7631e3b8 100644--- a/wger/nutrition/tests/submitted_ingredient.py+++ b/wger/nutrition/tests/submitted_ingredient.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/nutrition/tests/weight_unit.py b/wger/nutrition/tests/weight_unit.pyindex 4ea5ac013..aaccd83d6 100644--- a/wger/nutrition/tests/weight_unit.py+++ b/wger/nutrition/tests/weight_unit.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/nutrition/tests/weight_unit_ingredient.py b/wger/nutrition/tests/weight_unit_ingredient.pyindex 55e47a8c4..400efc8df 100644--- a/wger/nutrition/tests/weight_unit_ingredient.py+++ b/wger/nutrition/tests/weight_unit_ingredient.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/nutrition/views/ingredient.py b/wger/nutrition/views/ingredient.pyindex 354a80e26..baec4373c 100644--- a/wger/nutrition/views/ingredient.py+++ b/wger/nutrition/views/ingredient.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -44,14 +44,14 @@ from wger.nutrition.models import Ingredientfrom wger.nutrition.models import IngredientWeightUnitfrom wger.utils import helpers-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixinfrom wger.utils.generic_views import YamlDeleteMixinfrom wger.utils.constants import PAGINATION_OBJECTS_PER_PAGEfrom wger.utils.language import load_languagefrom wger.utils.language import load_ingredient_languagesfrom wger.utils.cache import cache_mapper-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')# ************************@@ -116,7 +116,7 @@ class IngredientDeleteView(YamlDeleteMixin, DeleteView):return context-class IngredientEditView(YamlFormMixin, UpdateView):+class IngredientEditView(WgerFormMixin, UpdateView):'''Generic view to update an existing ingredient'''@@ -127,7 +127,7 @@ class IngredientEditView(YamlFormMixin, UpdateView):messages = ugettext_lazy('Ingredient successfully updated')-class IngredientCreateView(YamlFormMixin, CreateView):+class IngredientCreateView(WgerFormMixin, CreateView):'''Generic view to add a new ingredient'''diff --git a/wger/nutrition/views/meal.py b/wger/nutrition/views/meal.pyindex 9937581f1..63c4539f1 100644--- a/wger/nutrition/views/meal.py+++ b/wger/nutrition/views/meal.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -30,10 +30,10 @@ from wger.nutrition.models import NutritionPlanfrom wger.nutrition.models import Mealfrom wger.nutrition.models import MealItem-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixin-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')# ************************@@ -41,7 +41,7 @@ logger = logging.getLogger('workout_manager.custom')# ************************-class MealCreateView(YamlFormMixin, CreateView):+class MealCreateView(WgerFormMixin, CreateView):'''Generic view to add a new meal to a nutrition plan'''@@ -68,7 +68,7 @@ class MealCreateView(YamlFormMixin, CreateView):return context-class MealEditView(YamlFormMixin, UpdateView):+class MealEditView(WgerFormMixin, UpdateView):'''Generic view to update an existing meal'''diff --git a/wger/nutrition/views/meal_item.py b/wger/nutrition/views/meal_item.pyindex c0b023015..29343c2b4 100644--- a/wger/nutrition/views/meal_item.py+++ b/wger/nutrition/views/meal_item.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -53,12 +53,12 @@ from reportlab.lib import colorsfrom wger import get_versionfrom wger.utils import helpers-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixinfrom wger.utils.generic_views import YamlDeleteMixinfrom wger.utils.language import load_ingredient_languages-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')# ************************@@ -111,7 +111,7 @@ def delete_meal_item(request, item_id):return HttpResponseForbidden()-class MealItemCreateView(YamlFormMixin, CreateView):+class MealItemCreateView(WgerFormMixin, CreateView):'''Generic view to create a new meal item'''@@ -153,7 +153,7 @@ class MealItemCreateView(YamlFormMixin, CreateView):return super(MealItemCreateView, self).form_valid(form)-class MealItemEditView(YamlFormMixin, UpdateView):+class MealItemEditView(WgerFormMixin, UpdateView):'''Generic view to update an existing meal item'''diff --git a/wger/nutrition/views/plan.py b/wger/nutrition/views/plan.pyindex 5a5c51af4..51b2c83f3 100644--- a/wger/nutrition/views/plan.py+++ b/wger/nutrition/views/plan.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -42,13 +42,13 @@ from reportlab.platypus import Paragraph, SimpleDocTemplate, Tablefrom reportlab.lib import colorsfrom wger import get_version-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixinfrom wger.utils.generic_views import YamlDeleteMixinfrom wger.utils.pdf import styleSheetfrom wger.utils.language import load_language-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')# ************************@@ -95,7 +95,7 @@ class PlanDeleteView(YamlDeleteMixin, DeleteView):messages = ugettext_lazy('Nutritional plan was successfully deleted')-class PlanEditView(YamlFormMixin, UpdateView):+class PlanEditView(WgerFormMixin, UpdateView):'''Generic view to update an existing nutritional plan'''diff --git a/wger/nutrition/views/unit.py b/wger/nutrition/views/unit.pyindex 1b4910e9e..4874a97b2 100644--- a/wger/nutrition/views/unit.py+++ b/wger/nutrition/views/unit.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -28,12 +28,12 @@ from django.views.generic import ListViewfrom wger.nutrition.models import WeightUnit-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixinfrom wger.utils.generic_views import YamlDeleteMixinfrom wger.utils.constants import PAGINATION_OBJECTS_PER_PAGEfrom wger.utils.language import load_language-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')# ************************# Weight units functions# ************************@@ -56,7 +56,7 @@ class WeightUnitListView(ListView):return WeightUnit.objects.filter(language=load_language())-class WeightUnitCreateView(YamlFormMixin, CreateView):+class WeightUnitCreateView(WgerFormMixin, CreateView):'''Generic view to add a new weight unit for ingredients'''@@ -84,7 +84,7 @@ class WeightUnitDeleteView(YamlDeleteMixin, DeleteView):form_action_urlname = 'weight-unit-delete'-class WeightUnitUpdateView(YamlFormMixin, UpdateView):+class WeightUnitUpdateView(WgerFormMixin, UpdateView):'''Generic view to update an weight unit'''diff --git a/wger/nutrition/views/unit_ingredient.py b/wger/nutrition/views/unit_ingredient.pyindex fa5529a01..46d59c4b5 100644--- a/wger/nutrition/views/unit_ingredient.py+++ b/wger/nutrition/views/unit_ingredient.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -30,11 +30,11 @@ from wger.nutrition.models import IngredientWeightUnitfrom wger.nutrition.models import WeightUnitfrom wger.utils.language import load_language-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixinfrom wger.utils.generic_views import YamlDeleteMixin-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')# ************************@@ -42,7 +42,7 @@ logger = logging.getLogger('workout_manager.custom')# ************************-class WeightUnitIngredientCreateView(YamlFormMixin, CreateView):+class WeightUnitIngredientCreateView(WgerFormMixin, CreateView):'''Generic view to add a new weight unit to ingredient entry'''@@ -80,7 +80,7 @@ class WeightUnitIngredientCreateView(YamlFormMixin, CreateView):return IngredientWeightUnitForm-class WeightUnitIngredientUpdateView(YamlFormMixin, UpdateView):+class WeightUnitIngredientUpdateView(WgerFormMixin, UpdateView):'''Generic view to update an weight unit to ingredient entry'''diff --git a/wger/settings_global.py b/wger/settings_global.pyindex f5a6cc7bd..6fd401502 100644--- a/wger/settings_global.py+++ b/wger/settings_global.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -258,7 +258,7 @@ LOGGING = {'level': 'ERROR','propagate': True,},- 'workout_manager.custom': {+ 'wger.custom': {'handlers': ['console', 'mail_admins'],'level': 'DEBUG',}diff --git a/wger/software/templates/changelog.html b/wger/software/templates/changelog.htmlindex 38031a6d7..5abd1005d 100644--- a/wger/software/templates/changelog.html+++ b/wger/software/templates/changelog.html@@ -1,7 +1,7 @@{% extends "base.html" %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{% trans "Changelog" %}{% endblock %}diff --git a/wger/software/templates/code.html b/wger/software/templates/code.htmlindex 99349fb69..6564d5f1c 100644--- a/wger/software/templates/code.html+++ b/wger/software/templates/code.html@@ -1,7 +1,7 @@{% extends "base.html" %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{% trans "Get the code" %}{% endblock %}diff --git a/wger/software/templates/functions.html b/wger/software/templates/functions.htmlindex 50eec5f42..1aeaecf9b 100644--- a/wger/software/templates/functions.html+++ b/wger/software/templates/functions.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{% trans "Features" %}{% endblock %}diff --git a/wger/software/templates/license.html b/wger/software/templates/license.htmlindex a20b46f7a..af4cd20a8 100644--- a/wger/software/templates/license.html+++ b/wger/software/templates/license.html@@ -1,7 +1,7 @@{% extends "base.html" %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{% trans "License" %}{% endblock %}diff --git a/wger/software/urls.py b/wger/software/urls.pyindex 4ec1410d2..72e64f8b1 100644--- a/wger/software/urls.py+++ b/wger/software/urls.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/software/views.py b/wger/software/views.pyindex 45e838e76..a04afd0a3 100644--- a/wger/software/views.py+++ b/wger/software/views.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/utils/cache.py b/wger/utils/cache.pyindex 95abecec9..3487424c0 100644--- a/wger/utils/cache.py+++ b/wger/utils/cache.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -19,7 +19,7 @@ from django.core.cache import cachefrom django.utils.encoding import force_bytes-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')def get_template_cache_name(fragment_name='', *args):diff --git a/wger/utils/constants.py b/wger/utils/constants.pyindex 7de17006c..ea22775bc 100644--- a/wger/utils/constants.py+++ b/wger/utils/constants.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/utils/context_processor.py b/wger/utils/context_processor.pyindex 6b8a92371..6bd019906 100644--- a/wger/utils/context_processor.py+++ b/wger/utils/context_processor.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/utils/generic_views.py b/wger/utils/generic_views.pyindex bf60a937e..b518ecf2b 100644--- a/wger/utils/generic_views.py+++ b/wger/utils/generic_views.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -34,7 +34,7 @@ from wger.utils.constants import HTML_TAG_WHITELISTfrom wger.utils.constants import HTML_ATTRIBUTES_WHITELISTfrom wger.utils.constants import HTML_STYLES_WHITELIST-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class WgerPermissionMixin(object):@@ -71,7 +71,7 @@ class WgerPermissionMixin(object):return super(WgerPermissionMixin, self).dispatch(request, *args, **kwargs)-class YamlFormMixin(ModelFormMixin, WgerPermissionMixin):+class WgerFormMixin(ModelFormMixin, WgerPermissionMixin):template_name = 'form.html'form_fields = []@@ -124,7 +124,7 @@ class YamlFormMixin(ModelFormMixin, WgerPermissionMixin):'''# Call the base implementation first to get a context- context = super(YamlFormMixin, self).get_context_data(**kwargs)+ context = super(WgerFormMixin, self).get_context_data(**kwargs)# CSRF tokencontext.update(csrf(self.request))@@ -196,7 +196,7 @@ class YamlFormMixin(ModelFormMixin, WgerPermissionMixin):return HttpResponseForbidden()# Dispatch normally- return super(YamlFormMixin, self).dispatch(request, *args, **kwargs)+ return super(WgerFormMixin, self).dispatch(request, *args, **kwargs)def get_messages(self):'''@@ -210,7 +210,7 @@ class YamlFormMixin(ModelFormMixin, WgerPermissionMixin):Log form errors to the console'''logger.debug(form.errors)- return super(YamlFormMixin, self).form_invalid(form)+ return super(WgerFormMixin, self).form_invalid(form)def form_valid(self, form):'''@@ -231,7 +231,7 @@ class YamlFormMixin(ModelFormMixin, WgerPermissionMixin):if self.get_messages():messages.success(self.request, self.get_messages())- return super(YamlFormMixin, self).form_valid(form)+ return super(WgerFormMixin, self).form_valid(form)class YamlDeleteMixin(ModelFormMixin, WgerPermissionMixin):diff --git a/wger/utils/helpers.py b/wger/utils/helpers.pyindex 4f7ad2471..d36a2ec70 100644--- a/wger/utils/helpers.py+++ b/wger/utils/helpers.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -21,7 +21,7 @@ import jsonfrom functools import wraps-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class DecimalJsonEncoder(json.JSONEncoder):diff --git a/wger/utils/language.py b/wger/utils/language.pyindex 270db9516..21581d990 100644--- a/wger/utils/language.py+++ b/wger/utils/language.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -23,7 +23,7 @@ from wger.config.models import LanguageConfigfrom wger.utils.cache import cache_mapper-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')# ************************diff --git a/wger/utils/middleware.py b/wger/utils/middleware.pyindex 4d265855f..a46c874b1 100644--- a/wger/utils/middleware.py+++ b/wger/utils/middleware.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -29,7 +29,7 @@ from django.contrib.auth import login as django_loginfrom wger.manager.demo import create_temporary_user-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')SPECIAL_PATHS = ('dashboard',diff --git a/wger/utils/pdf.py b/wger/utils/pdf.pyindex 2e0b74e49..ac90fb64d 100644--- a/wger/utils/pdf.py+++ b/wger/utils/pdf.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/utils/tests/middleware.py b/wger/utils/tests/middleware.pyindex e329c28a7..30449cd76 100644--- a/wger/utils/tests/middleware.py+++ b/wger/utils/tests/middleware.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/utils/widgets.py b/wger/utils/widgets.pyindex 8f637a527..66adc0ec9 100644--- a/wger/utils/widgets.py+++ b/wger/utils/widgets.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/weight/admin.py b/wger/weight/admin.pyindex 72377c866..a99c0bb09 100644--- a/wger/weight/admin.py+++ b/wger/weight/admin.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/weight/helpers.py b/wger/weight/helpers.pyindex bd899edc0..cbdefda3c 100644--- a/wger/weight/helpers.py+++ b/wger/weight/helpers.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -22,7 +22,7 @@ import csvfrom wger.weight.models import WeightEntry-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')def parse_weight_csv(request, cleaned_data):diff --git a/wger/weight/models.py b/wger/weight/models.pyindex 3bccb45e3..49fc6b079 100644--- a/wger/weight/models.py+++ b/wger/weight/models.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/weight/templates/edit.html b/wger/weight/templates/edit.htmlindex 20a9f80fc..12a6f582a 100644--- a/wger/weight/templates/edit.html+++ b/wger/weight/templates/edit.html@@ -2,7 +2,7 @@{% load url from future %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load wger_extras %}{% block title %}{% trans "Weight entry" %}{% endblock %}diff --git a/wger/weight/templates/import_csv_form.html b/wger/weight/templates/import_csv_form.htmlindex d4cf425a4..b9b982fb6 100644--- a/wger/weight/templates/import_csv_form.html+++ b/wger/weight/templates/import_csv_form.html@@ -1,5 +1,5 @@{% extends "base.html" %}-{% load manager_extras %}+{% load wger_extras %}{% load i18n %}{% block title %}{% trans "Import weight logs" %}{% endblock %}diff --git a/wger/weight/templates/import_csv_preview.html b/wger/weight/templates/import_csv_preview.htmlindex bcdbae503..87e93b005 100644--- a/wger/weight/templates/import_csv_preview.html+++ b/wger/weight/templates/import_csv_preview.html@@ -1,5 +1,5 @@{% extends "base.html" %}-{% load manager_extras %}+{% load wger_extras %}{% load i18n %}{% block title %}{% trans "Preview imported CSV entries" %}{% endblock %}diff --git a/wger/weight/tests/csv_export.py b/wger/weight/tests/csv_export.pyindex 981d11bb0..3004770d2 100644--- a/wger/weight/tests/csv_export.py+++ b/wger/weight/tests/csv_export.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -19,7 +19,7 @@ from django.core.urlresolvers import reversefrom wger.weight.models import WeightEntryfrom wger.manager.tests.testcase import WorkoutManagerTestCase-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class WeightCsvExportTestCase(WorkoutManagerTestCase):diff --git a/wger/weight/tests/csv_import.py b/wger/weight/tests/csv_import.pyindex 6d55aab50..9d4404fb9 100644--- a/wger/weight/tests/csv_import.py+++ b/wger/weight/tests/csv_import.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -19,7 +19,7 @@ from django.core.urlresolvers import reversefrom wger.weight.models import WeightEntryfrom wger.manager.tests.testcase import WorkoutManagerTestCase-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class WeightCsvImportTestCase(WorkoutManagerTestCase):diff --git a/wger/weight/tests/entry.py b/wger/weight/tests/entry.pyindex 43e6b17f4..f39506623 100644--- a/wger/weight/tests/entry.py+++ b/wger/weight/tests/entry.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.diff --git a/wger/weight/tests/overview.py b/wger/weight/tests/overview.pyindex fd8a23b17..bf7de8cca 100644--- a/wger/weight/tests/overview.py+++ b/wger/weight/tests/overview.py@@ -1,11 +1,11 @@-# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -18,7 +18,7 @@ from django.core.urlresolvers import reversefrom wger.manager.tests.testcase import WorkoutManagerTestCase-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class WeightOverviewTestCase(WorkoutManagerTestCase):diff --git a/wger/weight/views.py b/wger/weight/views.pyindex 154892a04..3ed0d8ea5 100644--- a/wger/weight/views.py+++ b/wger/weight/views.py@@ -1,13 +1,13 @@# -*- coding: utf-8 -*--# This file is part of Workout Manager.+# This file is part of wger Workout Manager.#-# Workout Manager is free software: you can redistribute it and/or modify+# wger Workout Manager is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.#-# Workout Manager is distributed in the hope that it will be useful,+# wger Workout Manager is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.@@ -44,11 +44,11 @@ from django.views.generic import UpdateViewfrom wger.weight.models import WeightEntryfrom wger.weight import helpers-from wger.utils.generic_views import YamlFormMixin+from wger.utils.generic_views import WgerFormMixinfrom wger.utils.constants import DATE_FORMATS-logger = logging.getLogger('workout_manager.custom')+logger = logging.getLogger('wger.custom')class WeightForm(ModelForm):@@ -58,7 +58,7 @@ class WeightForm(ModelForm):model = WeightEntry-class WeightAddView(YamlFormMixin, CreateView):+class WeightAddView(WgerFormMixin, CreateView):'''Generic view to add a new weight entry'''@@ -80,7 +80,7 @@ class WeightAddView(YamlFormMixin, CreateView):return super(WeightAddView, self).form_valid(form)-class WeightUpdateView(YamlFormMixin, UpdateView):+class WeightUpdateView(WgerFormMixin, UpdateView):'''Generic view to edit an existing weight entry'''