diff options
author | Matthew Lemon <y@yulqen.org> | 2025-01-04 16:44:59 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2025-01-04 16:44:59 +0000 |
commit | 126a5fb1841aaf95b38cc8d7e5c79561023623f1 (patch) | |
tree | 88a2f015f37553752def9afbeeed899fb02387bd /alphabetlearning/resources/views.py | |
parent | b43e1ef2c2721b7a334526903ea06e73d978f4b0 (diff) |
Adds isort as dev depenedency
Diffstat (limited to 'alphabetlearning/resources/views.py')
-rw-r--r-- | alphabetlearning/resources/views.py | 26 |
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__) |