INCR-248: Make compatible with Python 3.x without breaking Python 2.7… (#20529)

* INCR-248: Make compatible with Python 3.x without breaking Python 2.7 support --> common/djangoapps/xblock_django

* INCR-248: Grouped absolute_import and unicode_literals imports

* INCR-248: Grouped absolute_import and unicode_literals imports for migrations
This commit is contained in:
Amit
2019-05-13 19:35:39 +03:00
committed by Michael Youngstrom
parent d0810a5c94
commit 65f4a63ecf
4 changed files with 8 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
Django admin dashboard configuration.
"""
from __future__ import absolute_import
from config_models.admin import ConfigurationModelAdmin, KeyedConfigurationModelAdmin
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _

View File

@@ -2,6 +2,8 @@
API methods related to xblock state.
"""
from __future__ import absolute_import
from xblock_django.models import XBlockConfiguration, XBlockStudioConfiguration

View File

@@ -2,6 +2,8 @@
Models.
"""
from __future__ import absolute_import
from config_models.models import ConfigurationModel
from django.db import models
from django.utils.translation import ugettext_lazy as _

View File

@@ -1,6 +1,8 @@
"""
Support for converting a django user to an XBlock user
"""
from __future__ import absolute_import
from django.contrib.auth.models import User
from opaque_keys.edx.keys import CourseKey
from xblock.reference.user_service import UserService, XBlockUser