Fixed some references to the bad imports

This commit is contained in:
Karl Hobley 2014-08-21 15:41:19 +01:00
parent 521d753a36
commit cecfe9f3cc
4 changed files with 7 additions and 5 deletions

View file

@ -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):

View file

@ -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()

View file

@ -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

View file

@ -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):