diff --git a/ocw/apps.py b/ocw/apps.py index 13328348..5fe93c32 100644 --- a/ocw/apps.py +++ b/ocw/apps.py @@ -1,6 +1,6 @@ -from django.apps import AppConfig import os import logging +from django.apps import AppConfig from apscheduler.schedulers.background import BackgroundScheduler from apscheduler.executors.pool import ThreadPoolExecutor from pytz import utc diff --git a/ocw/models.py b/ocw/models.py index 8be52a38..89079843 100644 --- a/ocw/models.py +++ b/ocw/models.py @@ -1,7 +1,7 @@ -from django.db import models +import json from datetime import datetime, timedelta, timezone +from django.db import models from webui.PCWConfig import PCWConfig -import json from .enums import ProviderChoice, StateChoice diff --git a/ocw/tables.py b/ocw/tables.py index 5abd33d2..6ef440e1 100644 --- a/ocw/tables.py +++ b/ocw/tables.py @@ -1,13 +1,13 @@ # tutorial/tables.py +from django_tables2.utils import A +from django.utils.html import format_html +from django.templatetags.static import static +from django.template.loader import get_template import django_tables2 as tables import django_filters from .models import Instance from .models import ProviderChoice from .models import StateChoice -from django_tables2.utils import A -from django.utils.html import format_html -from django.templatetags.static import static -from django.template.loader import get_template class NoHeaderLinkColumn(tables.LinkColumn): diff --git a/ocw/views.py b/ocw/views.py index 255a5137..af4737d6 100644 --- a/ocw/views.py +++ b/ocw/views.py @@ -1,12 +1,12 @@ +from django.contrib.auth.decorators import login_required +from django.http import JsonResponse, HttpResponse +from django.core.serializers import serialize from django.shortcuts import redirect from django_tables2 import SingleTableView from .lib import db from .models import Instance from .tables import InstanceTable from .tables import InstanceFilter -from django.contrib.auth.decorators import login_required -from django.http import JsonResponse, HttpResponse -from django.core.serializers import serialize class FilteredSingleTableView(SingleTableView):