From a10fbd682ca7bc742ae2ffc3c08d7eb4b5ab7b3e Mon Sep 17 00:00:00 2001 From: Amit <43564590+amitvadhel@users.noreply.github.com> Date: Fri, 10 May 2019 18:14:18 +0300 Subject: [PATCH] INCR-231: Run python-modernize and isort at common/djangoapps/entitlements (#20515) --- common/djangoapps/entitlements/admin.py | 2 ++ common/djangoapps/entitlements/apps.py | 2 ++ common/djangoapps/entitlements/models.py | 2 ++ common/djangoapps/entitlements/signals.py | 2 ++ common/djangoapps/entitlements/tasks.py | 3 ++- common/djangoapps/entitlements/utils.py | 2 ++ 6 files changed, 12 insertions(+), 1 deletion(-) diff --git a/common/djangoapps/entitlements/admin.py b/common/djangoapps/entitlements/admin.py index 1f567740dd..f3567729dc 100644 --- a/common/djangoapps/entitlements/admin.py +++ b/common/djangoapps/entitlements/admin.py @@ -1,4 +1,6 @@ """Admin forms for Course Entitlements""" +from __future__ import absolute_import + from django import forms from django.contrib import admin from opaque_keys import InvalidKeyError diff --git a/common/djangoapps/entitlements/apps.py b/common/djangoapps/entitlements/apps.py index 69325e2b7e..f41e6e8903 100644 --- a/common/djangoapps/entitlements/apps.py +++ b/common/djangoapps/entitlements/apps.py @@ -4,6 +4,8 @@ Entitlements Application Configuration Signal handlers are connected here. """ +from __future__ import absolute_import + from django.apps import AppConfig diff --git a/common/djangoapps/entitlements/models.py b/common/djangoapps/entitlements/models.py index e2ce5b921f..e0c1c98297 100644 --- a/common/djangoapps/entitlements/models.py +++ b/common/djangoapps/entitlements/models.py @@ -1,5 +1,7 @@ """Entitlement Models""" +from __future__ import absolute_import + import logging import uuid as uuid_tools from datetime import timedelta diff --git a/common/djangoapps/entitlements/signals.py b/common/djangoapps/entitlements/signals.py index 8cc245f473..77cf9d6fba 100644 --- a/common/djangoapps/entitlements/signals.py +++ b/common/djangoapps/entitlements/signals.py @@ -2,6 +2,8 @@ Entitlements related signal handlers. """ +from __future__ import absolute_import + from django.dispatch import receiver from entitlements.models import CourseEntitlement diff --git a/common/djangoapps/entitlements/tasks.py b/common/djangoapps/entitlements/tasks.py index 7a70fa635d..37e7c378f1 100644 --- a/common/djangoapps/entitlements/tasks.py +++ b/common/djangoapps/entitlements/tasks.py @@ -2,13 +2,14 @@ This file contains celery tasks for entitlements-related functionality. """ +from __future__ import absolute_import + from celery import task from celery.utils.log import get_task_logger from django.conf import settings from entitlements.models import CourseEntitlement - LOGGER = get_task_logger(__name__) # Under cms the following setting is not defined, leading to errors during tests. ROUTING_KEY = getattr(settings, 'ENTITLEMENTS_EXPIRATION_ROUTING_KEY', None) diff --git a/common/djangoapps/entitlements/utils.py b/common/djangoapps/entitlements/utils.py index ce86389c18..597ffb0cea 100644 --- a/common/djangoapps/entitlements/utils.py +++ b/common/djangoapps/entitlements/utils.py @@ -2,6 +2,8 @@ Utility methods for the entitlement application. """ +from __future__ import absolute_import + import logging from django.utils import timezone