PLAT-1916 Ignore existing usage of deprecated field_data

This commit is contained in:
Jeremy Bowman
2018-02-01 13:00:28 -05:00
parent 7d67583bb9
commit 11e134c552
9 changed files with 18 additions and 17 deletions

View File

@@ -14,7 +14,8 @@ class CommonInitializationConfig(AppConfig):
from . import checks
self._add_mimetypes()
def _add_mimetypes(self):
@staticmethod
def _add_mimetypes():
"""
Add extra mimetypes. Used in xblock_resource.
"""

View File

@@ -115,4 +115,6 @@ def log_python_warnings():
each test case.
"""
warnings.simplefilter('default')
warnings.filterwarnings('ignore', 'Setting _field_data is deprecated')
warnings.filterwarnings('ignore', 'Setting _field_data via the constructor is deprecated')
logging.captureWarnings(True)

View File

@@ -55,6 +55,7 @@ INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'djcelery',
'openedx.core.djangoapps.video_config',
'openedx.core.djangoapps.video_pipeline',
@@ -62,6 +63,7 @@ INSTALLED_APPS = (
'edxval',
'courseware',
'student',
'openedx.core.djangoapps.site_configuration',
'lms.djangoapps.certificates.apps.CertificatesConfig',
'openedx.core.djangoapps.user_api',
'course_modes.apps.CourseModesConfig',