Fix import ordering for Jenkins lint
This commit is contained in:
@@ -8,8 +8,10 @@ def patch_invoice_admin():
|
|||||||
date_hierarchy setting injected by the communications plugin.
|
date_hierarchy setting injected by the communications plugin.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
import oscar_invoices.admin # noqa: F401
|
|
||||||
from oscar.core.loading import get_model
|
from oscar.core.loading import get_model
|
||||||
|
|
||||||
|
import oscar_invoices.admin # noqa: F401
|
||||||
|
|
||||||
from ocyan.plugin.oscar_communications.oscar_invoices_extension.admin import (
|
from ocyan.plugin.oscar_communications.oscar_invoices_extension.admin import (
|
||||||
InvoiceAdmin,
|
InvoiceAdmin,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from typing import Iterable
|
from typing import Iterable
|
||||||
|
|
||||||
|
|
||||||
DEMO_MARKERS: tuple[str, ...] = (
|
DEMO_MARKERS: tuple[str, ...] = (
|
||||||
"demo",
|
"demo",
|
||||||
"dummy",
|
"dummy",
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ from oscar.core.loading import get_model
|
|||||||
|
|
||||||
from mandelstudio.content_hygiene import DEMO_MARKERS
|
from mandelstudio.content_hygiene import DEMO_MARKERS
|
||||||
|
|
||||||
|
|
||||||
IDEA_PRODUCT_CLASS_NAME = "Idea Product"
|
IDEA_PRODUCT_CLASS_NAME = "Idea Product"
|
||||||
DIGITAL_IDEAS_CATEGORY_NAME = "Digital Ideas"
|
DIGITAL_IDEAS_CATEGORY_NAME = "Digital Ideas"
|
||||||
SHORT_DESCRIPTION_ATTRIBUTE_CODE = "short_description"
|
SHORT_DESCRIPTION_ATTRIBUTE_CODE = "short_description"
|
||||||
|
|||||||
@@ -3,13 +3,13 @@ from __future__ import annotations
|
|||||||
from django.core.management.base import BaseCommand
|
from django.core.management.base import BaseCommand
|
||||||
from django.db import transaction
|
from django.db import transaction
|
||||||
from django.db.models import Q
|
from django.db.models import Q
|
||||||
|
|
||||||
from wagtail.blocks import StreamValue
|
from wagtail.blocks import StreamValue
|
||||||
from wagtail.models import Page
|
from wagtail.models import Page
|
||||||
|
|
||||||
from mandelstudio.content_hygiene import BLOCKED_DEMO_PAGE_SLUGS, DEMO_MARKERS
|
from mandelstudio.content_hygiene import BLOCKED_DEMO_PAGE_SLUGS, DEMO_MARKERS
|
||||||
from mandelstudio.idea_marketplace import seed_idea_marketplace_products
|
from mandelstudio.idea_marketplace import seed_idea_marketplace_products
|
||||||
|
|
||||||
|
|
||||||
HOME_COPY = {
|
HOME_COPY = {
|
||||||
"nl": {
|
"nl": {
|
||||||
"badge": "IDEA MARKETPLACE",
|
"badge": "IDEA MARKETPLACE",
|
||||||
|
|||||||
@@ -4,9 +4,10 @@ from typing import Iterable
|
|||||||
|
|
||||||
from django.core.management.base import BaseCommand
|
from django.core.management.base import BaseCommand
|
||||||
from django.db.models import Q
|
from django.db.models import Q
|
||||||
from oscar.core.loading import get_model
|
|
||||||
from wagtail.models import Page
|
from wagtail.models import Page
|
||||||
|
|
||||||
|
from oscar.core.loading import get_model
|
||||||
|
|
||||||
IDEA_PRODUCT_TITLES = {
|
IDEA_PRODUCT_TITLES = {
|
||||||
"B2B Webshop Starter Blueprint",
|
"B2B Webshop Starter Blueprint",
|
||||||
|
|||||||
@@ -1,12 +1,15 @@
|
|||||||
from django.contrib.sitemaps.views import index as sitemap_index_view
|
from django.contrib.sitemaps.views import index as sitemap_index_view
|
||||||
from django.contrib.sitemaps.views import sitemap as sitemap_section_view
|
from django.contrib.sitemaps.views import sitemap as sitemap_section_view
|
||||||
from django.http import HttpResponse
|
from django.http import HttpResponse
|
||||||
|
|
||||||
from wagtail.models import Locale, Page
|
from wagtail.models import Locale, Page
|
||||||
|
|
||||||
from ocyan.plugin.wagtail_oscar_integration.constants import CACHE_DURATION
|
from ocyan.plugin.wagtail_oscar_integration.constants import CACHE_DURATION
|
||||||
from ocyan.plugin.wagtail_oscar_integration.sitemap import CategorySitemap
|
from ocyan.plugin.wagtail_oscar_integration.sitemap import (
|
||||||
from ocyan.plugin.wagtail_oscar_integration.sitemap import ProductSitemap
|
CategorySitemap,
|
||||||
from ocyan.plugin.wagtail_oscar_integration.sitemap import ShopSitemap
|
ProductSitemap,
|
||||||
|
ShopSitemap,
|
||||||
|
)
|
||||||
from ocyan.plugin.wagtail_oscar_integration.sitemap import (
|
from ocyan.plugin.wagtail_oscar_integration.sitemap import (
|
||||||
WagtailSitemap as BaseWagtailSitemap,
|
WagtailSitemap as BaseWagtailSitemap,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
from django import template
|
from django import template
|
||||||
|
|
||||||
from wagtail.models import Site
|
from wagtail.models import Site
|
||||||
|
|
||||||
from mandelstudio.models import LocalizedFooterContent
|
from mandelstudio.models import LocalizedFooterContent
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
from django.views.decorators.cache import cache_page
|
|
||||||
from django.urls import include, path
|
from django.urls import include, path
|
||||||
|
from django.views.decorators.cache import cache_page
|
||||||
|
|
||||||
from ocyan.main.urls import urlpatterns as ocyan_urlpatterns
|
from ocyan.main.urls import urlpatterns as ocyan_urlpatterns
|
||||||
from ocyan.plugin.wagtail_oscar_integration.constants import CACHE_DURATION
|
from ocyan.plugin.wagtail_oscar_integration.constants import CACHE_DURATION
|
||||||
|
|
||||||
from .sitemaps import robots_txt
|
from .sitemaps import robots_txt, sitemap_index, sitemap_section
|
||||||
from .sitemaps import sitemap_index
|
|
||||||
from .sitemaps import sitemap_section
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("i18n/", include("django.conf.urls.i18n")),
|
path("i18n/", include("django.conf.urls.i18n")),
|
||||||
|
|||||||
Reference in New Issue
Block a user