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.
|
||||
"""
|
||||
try:
|
||||
import oscar_invoices.admin # noqa: F401
|
||||
from oscar.core.loading import get_model
|
||||
|
||||
import oscar_invoices.admin # noqa: F401
|
||||
|
||||
from ocyan.plugin.oscar_communications.oscar_invoices_extension.admin import (
|
||||
InvoiceAdmin,
|
||||
)
|
||||
|
||||
@@ -2,7 +2,6 @@ from __future__ import annotations
|
||||
|
||||
from typing import Iterable
|
||||
|
||||
|
||||
DEMO_MARKERS: tuple[str, ...] = (
|
||||
"demo",
|
||||
"dummy",
|
||||
|
||||
@@ -11,7 +11,6 @@ from oscar.core.loading import get_model
|
||||
|
||||
from mandelstudio.content_hygiene import DEMO_MARKERS
|
||||
|
||||
|
||||
IDEA_PRODUCT_CLASS_NAME = "Idea Product"
|
||||
DIGITAL_IDEAS_CATEGORY_NAME = "Digital Ideas"
|
||||
SHORT_DESCRIPTION_ATTRIBUTE_CODE = "short_description"
|
||||
|
||||
@@ -3,13 +3,13 @@ from __future__ import annotations
|
||||
from django.core.management.base import BaseCommand
|
||||
from django.db import transaction
|
||||
from django.db.models import Q
|
||||
|
||||
from wagtail.blocks import StreamValue
|
||||
from wagtail.models import Page
|
||||
|
||||
from mandelstudio.content_hygiene import BLOCKED_DEMO_PAGE_SLUGS, DEMO_MARKERS
|
||||
from mandelstudio.idea_marketplace import seed_idea_marketplace_products
|
||||
|
||||
|
||||
HOME_COPY = {
|
||||
"nl": {
|
||||
"badge": "IDEA MARKETPLACE",
|
||||
|
||||
@@ -4,9 +4,10 @@ from typing import Iterable
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
from django.db.models import Q
|
||||
from oscar.core.loading import get_model
|
||||
|
||||
from wagtail.models import Page
|
||||
|
||||
from oscar.core.loading import get_model
|
||||
|
||||
IDEA_PRODUCT_TITLES = {
|
||||
"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 sitemap as sitemap_section_view
|
||||
from django.http import HttpResponse
|
||||
|
||||
from wagtail.models import Locale, Page
|
||||
|
||||
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 ProductSitemap
|
||||
from ocyan.plugin.wagtail_oscar_integration.sitemap import ShopSitemap
|
||||
from ocyan.plugin.wagtail_oscar_integration.sitemap import (
|
||||
CategorySitemap,
|
||||
ProductSitemap,
|
||||
ShopSitemap,
|
||||
)
|
||||
from ocyan.plugin.wagtail_oscar_integration.sitemap import (
|
||||
WagtailSitemap as BaseWagtailSitemap,
|
||||
)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from django import template
|
||||
|
||||
from wagtail.models import Site
|
||||
|
||||
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.views.decorators.cache import cache_page
|
||||
|
||||
from ocyan.main.urls import urlpatterns as ocyan_urlpatterns
|
||||
from ocyan.plugin.wagtail_oscar_integration.constants import CACHE_DURATION
|
||||
|
||||
from .sitemaps import robots_txt
|
||||
from .sitemaps import sitemap_index
|
||||
from .sitemaps import sitemap_section
|
||||
from .sitemaps import robots_txt, sitemap_index, sitemap_section
|
||||
|
||||
urlpatterns = [
|
||||
path("i18n/", include("django.conf.urls.i18n")),
|
||||
|
||||
Reference in New Issue
Block a user