Also remove showfields imports from __init__.py
If we're to cause pain, let it be once.fix_request_path_info
parent
50f21dfa43
commit
5191b6c130
|
|
@ -6,13 +6,10 @@ Copyright:
|
||||||
This code and affiliated files are (C) by Bert Constantin and individual contributors.
|
This code and affiliated files are (C) by Bert Constantin and individual contributors.
|
||||||
Please see LICENSE and AUTHORS for more information.
|
Please see LICENSE and AUTHORS for more information.
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import
|
|
||||||
import django
|
|
||||||
from .showfields import ShowFieldContent, ShowFieldType, ShowFieldTypeAndContent
|
|
||||||
from .showfields import ShowFields, ShowFieldTypes, ShowFieldsAndTypes # import old names for compatibility
|
|
||||||
|
|
||||||
|
|
||||||
# Monkey-patch Django < 1.5 to allow ContentTypes for proxy models.
|
# Monkey-patch Django < 1.5 to allow ContentTypes for proxy models.
|
||||||
|
import django
|
||||||
if django.VERSION[:2] < (1, 5):
|
if django.VERSION[:2] < (1, 5):
|
||||||
from django.contrib.contenttypes.models import ContentTypeManager
|
from django.contrib.contenttypes.models import ContentTypeManager
|
||||||
from django.utils.encoding import smart_text
|
from django.utils.encoding import smart_text
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ from django.utils import six
|
||||||
from polymorphic.models import PolymorphicModel
|
from polymorphic.models import PolymorphicModel
|
||||||
from polymorphic.managers import PolymorphicManager
|
from polymorphic.managers import PolymorphicManager
|
||||||
from polymorphic.query import PolymorphicQuerySet
|
from polymorphic.query import PolymorphicQuerySet
|
||||||
from polymorphic import ShowFieldContent, ShowFieldType, ShowFieldTypeAndContent
|
from polymorphic.showfields import ShowFieldContent, ShowFieldType, ShowFieldTypeAndContent
|
||||||
try:
|
try:
|
||||||
from django.db.models import UUIDField
|
from django.db.models import UUIDField
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue