diff --git a/myhpi/core/models.py b/myhpi/core/models.py index f795650c..f514734e 100644 --- a/myhpi/core/models.py +++ b/myhpi/core/models.py @@ -10,10 +10,10 @@ from modelcluster.contrib.taggit import ClusterTaggableManager from modelcluster.fields import ParentalKey, ParentalManyToManyField from taggit.models import ItemBase, TagBase -from wagtail.admin.panels import FieldPanel, PublishingPanel from wagtail.admin.forms import WagtailAdminPageForm -from wagtail.models import Page, Site +from wagtail.admin.panels import FieldPanel, PublishingPanel from wagtail.documents.models import Document +from wagtail.models import Page, Site from wagtail.search import index from wagtail.snippets.models import register_snippet diff --git a/myhpi/core/wagtail_hooks.py b/myhpi/core/wagtail_hooks.py index 9f08287b..398e1324 100644 --- a/myhpi/core/wagtail_hooks.py +++ b/myhpi/core/wagtail_hooks.py @@ -5,8 +5,8 @@ from django.db.models import Q from django.templatetags.static import static from django.utils.html import format_html -from wagtail.contrib.modeladmin.options import ModelAdmin, modeladmin_register from wagtail import hooks +from wagtail.contrib.modeladmin.options import ModelAdmin, modeladmin_register from myhpi.core.models import ( AbbreviationExplanation, diff --git a/myhpi/tests/test_markdown_extensions.py b/myhpi/tests/test_markdown_extensions.py index 65070dcd..aebbccc0 100644 --- a/myhpi/tests/test_markdown_extensions.py +++ b/myhpi/tests/test_markdown_extensions.py @@ -4,7 +4,6 @@ from django.test import TestCase from django.utils.translation import activate - django.setup() from myhpi.core.markdown.extensions import ( diff --git a/myhpi/urls.py b/myhpi/urls.py index 206e41ab..f61041b2 100644 --- a/myhpi/urls.py +++ b/myhpi/urls.py @@ -4,8 +4,8 @@ from django.contrib.auth import views as auth_views from django.urls import include, path, reverse_lazy from django.views.generic import RedirectView -from wagtail.admin import urls as wagtailadmin_urls from wagtail import urls as wagtail_urls +from wagtail.admin import urls as wagtailadmin_urls from wagtail.documents import urls as wagtaildocs_urls from myhpi.search import views as search_views