Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Automatic linting

Github-actions391650417279
diff --git a/wger/utils/generic_views.py b/wger/utils/generic_views.py
index f055b8c1e..58ee4d140 100644
--- a/wger/utils/generic_views.py
+++ b/wger/utils/generic_views.py
@@ -17,16 +17,6 @@
# Standard Library
import logging
-# Third Party
-import bleach
-from bleach.css_sanitizer import CSSSanitizer
-from crispy_forms.helper import FormHelper
-from crispy_forms.layout import (
- ButtonHolder,
- Layout,
- Submit,
-)
-
# Django
from django.contrib import messages
from django.contrib.auth.mixins import PermissionRequiredMixin
@@ -40,6 +30,16 @@ from django.utils.translation import gettext_lazy
from django.views.generic import TemplateView
from django.views.generic.edit import ModelFormMixin
+# Third Party
+import bleach
+from bleach.css_sanitizer import CSSSanitizer
+from crispy_forms.helper import FormHelper
+from crispy_forms.layout import (
+ ButtonHolder,
+ Layout,
+ Submit,
+)
+
# wger
from wger.utils.constants import (
HTML_ATTRIBUTES_WHITELIST,
@@ -47,6 +47,7 @@ from wger.utils.constants import (
HTML_TAG_WHITELIST,
)
+
logger = logging.getLogger(__name__)