mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Make sure with_metaclass always comes from Django
Fixes #1403 Fixes #1402
This commit is contained in:
parent
5538b73e9e
commit
43d3053232
@ -1,13 +1,16 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from six import text_type, with_metaclass
|
||||
from six import text_type
|
||||
|
||||
from django.forms import MediaDefiningClass, Media
|
||||
from django.forms.utils import flatatt
|
||||
from django.utils.text import slugify
|
||||
from django.utils.safestring import mark_safe
|
||||
from wagtail.utils.compat import render_to_string
|
||||
|
||||
# Must be imported from Django so we get the new implementation of with_metaclass
|
||||
from django.utils.six import with_metaclass
|
||||
|
||||
from wagtail.utils.compat import render_to_string
|
||||
from wagtail.wagtailcore import hooks
|
||||
|
||||
|
||||
|
@ -10,7 +10,8 @@ from django.utils.encoding import python_2_unicode_compatible, force_text
|
||||
from django.utils.html import format_html_join
|
||||
from django.utils.safestring import mark_safe
|
||||
|
||||
import six
|
||||
# Must be imported from Django so we get the new implementation of with_metaclass
|
||||
from django.utils import six
|
||||
|
||||
from wagtail.wagtailcore.utils import escape_script
|
||||
|
||||
|
@ -9,7 +9,8 @@ from django.utils.encoding import python_2_unicode_compatible
|
||||
from django.utils.functional import cached_property
|
||||
from django.utils.html import format_html, format_html_join
|
||||
|
||||
import six
|
||||
# Must be imported from Django so we get the new implementation of with_metaclass
|
||||
from django.utils import six
|
||||
|
||||
from .base import Block, DeclarativeSubBlocksMetaclass
|
||||
from .utils import js_dict
|
||||
|
@ -3,7 +3,6 @@ from __future__ import unicode_literals
|
||||
import logging
|
||||
import json
|
||||
|
||||
import six
|
||||
from six import StringIO
|
||||
from six.moves.urllib.parse import urlparse
|
||||
|
||||
@ -29,6 +28,9 @@ from django.utils.functional import cached_property
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
from django.core import checks
|
||||
|
||||
# Must be imported from Django so we get the new implementation of with_metaclass
|
||||
from django.utils import six
|
||||
|
||||
from treebeard.mp_tree import MP_Node
|
||||
|
||||
from wagtail.wagtailcore.utils import camelcase_to_underscore, resolve_model_string
|
||||
|
Loading…
Reference in New Issue
Block a user