INCR-231: Run python-modernize and isort at common/djangoapps/entitlements (#20515)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -4,6 +4,8 @@ Entitlements Application Configuration
|
||||
Signal handlers are connected here.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
"""Entitlement Models"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import logging
|
||||
import uuid as uuid_tools
|
||||
from datetime import timedelta
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
Entitlements related signal handlers.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.dispatch import receiver
|
||||
|
||||
from entitlements.models import CourseEntitlement
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
Utility methods for the entitlement application.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import logging
|
||||
|
||||
from django.utils import timezone
|
||||
|
||||
Reference in New Issue
Block a user