INCR-231: Run python-modernize and isort at common/djangoapps/entitlements (#20515)

This commit is contained in:
Amit
2019-05-10 18:14:18 +03:00
committed by Michael Youngstrom
parent e1f47c0474
commit a10fbd682c
6 changed files with 12 additions and 1 deletions

View File

@@ -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

View File

@@ -4,6 +4,8 @@ Entitlements Application Configuration
Signal handlers are connected here.
"""
from __future__ import absolute_import
from django.apps import AppConfig

View File

@@ -1,5 +1,7 @@
"""Entitlement Models"""
from __future__ import absolute_import
import logging
import uuid as uuid_tools
from datetime import timedelta

View File

@@ -2,6 +2,8 @@
Entitlements related signal handlers.
"""
from __future__ import absolute_import
from django.dispatch import receiver
from entitlements.models import CourseEntitlement

View File

@@ -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)

View File

@@ -2,6 +2,8 @@
Utility methods for the entitlement application.
"""
from __future__ import absolute_import
import logging
from django.utils import timezone