kopia lustrzana https://github.com/wagtail/wagtail
Merge pull request #561 from kaedroho/bad-imports-cleanup
Cleaned up bad imports. Fixes #544pull/672/head^2
commit
f50ed21156
|
@ -1,4 +1 @@
|
|||
from .models import Embed
|
||||
from .embeds import get_embed
|
||||
|
||||
default_app_config = 'wagtail.wagtailembeds.apps.WagtailEmbedsAppConfig'
|
||||
|
|
|
@ -2,7 +2,7 @@ from __future__ import division # Use true division
|
|||
|
||||
from django.template.loader import render_to_string
|
||||
|
||||
from wagtail.wagtailembeds import get_embed
|
||||
from wagtail.wagtailembeds.embeds import get_embed
|
||||
|
||||
|
||||
def embed_to_frontend_html(url):
|
||||
|
|
|
@ -3,7 +3,7 @@ import warnings
|
|||
from django import template
|
||||
from django.utils.safestring import mark_safe
|
||||
|
||||
from wagtail.wagtailembeds import get_embed
|
||||
from wagtail.wagtailembeds.embeds import get_embed
|
||||
|
||||
|
||||
register = template.Library()
|
||||
|
|
|
@ -15,13 +15,14 @@ from django.test import TestCase
|
|||
|
||||
from wagtail.tests.utils import WagtailTestUtils, unittest
|
||||
|
||||
from wagtail.wagtailembeds import get_embed
|
||||
from wagtail.wagtailembeds.embeds import (
|
||||
EmbedNotFoundException,
|
||||
EmbedlyException,
|
||||
AccessDeniedEmbedlyException,
|
||||
get_embed,
|
||||
embedly as wagtail_embedly,
|
||||
oembed as wagtail_oembed,
|
||||
)
|
||||
from wagtail.wagtailembeds.embeds import embedly as wagtail_embedly, oembed as wagtail_oembed
|
||||
from wagtail.wagtailembeds.templatetags.wagtailembeds_tags import embed as embed_filter
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1 @@
|
|||
from wagtail.wagtailsearch.index import Indexed
|
||||
from wagtail.wagtailsearch.signal_handlers import register_signal_handlers
|
||||
from wagtail.wagtailsearch.backends import get_search_backend
|
||||
|
||||
default_app_config = 'wagtail.wagtailsearch.apps.WagtailSearchAppConfig'
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
from django.core.management.base import BaseCommand
|
||||
from django.db import models
|
||||
|
||||
from wagtail.wagtailsearch import Indexed, get_search_backend
|
||||
from wagtail.wagtailsearch.indexed import Indexed
|
||||
from wagtail.wagtailsearch.backends import get_search_backend
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
|
|
Ładowanie…
Reference in New Issue