aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning
diff options
context:
space:
mode:
Diffstat (limited to 'alphabetlearning')
-rw-r--r--alphabetlearning/resources/views.py26
1 files changed, 8 insertions, 18 deletions
diff --git a/alphabetlearning/resources/views.py b/alphabetlearning/resources/views.py
index 8b0f8c5..508c187 100644
--- a/alphabetlearning/resources/views.py
+++ b/alphabetlearning/resources/views.py
@@ -9,26 +9,16 @@ from django.conf import settings
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator
-from django.db import IntegrityError
-from django.db import transaction
-from django.shortcuts import get_object_or_404
-from django.shortcuts import redirect
-from django.shortcuts import render
+from django.db import IntegrityError, transaction
+from django.shortcuts import get_object_or_404, redirect, render
from . import services
-from .forms import ResourceCreateForm
-from .forms import ResourceUpdateMetadataForm
-from .forms import ResourceUpdatePDFsForm
-from .forms import ResourceUpdateThumbnailsForm
-from .models import PDFPageSnapshot
-from .models import PDFResource
-from .models import Resource
-from .models import ResourceCategory
-from .models import ResourceSubcategory
-from .s3 import get_presigned_obj_url
-from .s3 import upload_files_to_s3
-from .s3 import upload_snapshotted_pages_to_s3
-from .s3 import upload_to_s3
+from .forms import (ResourceCreateForm, ResourceUpdateMetadataForm,
+ ResourceUpdatePDFsForm, ResourceUpdateThumbnailsForm)
+from .models import (PDFPageSnapshot, PDFResource, Resource, ResourceCategory,
+ ResourceSubcategory)
+from .s3 import (get_presigned_obj_url, upload_files_to_s3,
+ upload_snapshotted_pages_to_s3, upload_to_s3)
logger = logging.getLogger(__name__)