aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning
diff options
context:
space:
mode:
Diffstat (limited to 'alphabetlearning')
-rw-r--r--alphabetlearning/pages/apps.py4
-rw-r--r--alphabetlearning/resources/tests/test_forms.py8
-rw-r--r--alphabetlearning/resources/views.py26
-rw-r--r--alphabetlearning/templates/base.html4
4 files changed, 15 insertions, 27 deletions
diff --git a/alphabetlearning/pages/apps.py b/alphabetlearning/pages/apps.py
index cdd024b..768ce00 100644
--- a/alphabetlearning/pages/apps.py
+++ b/alphabetlearning/pages/apps.py
@@ -2,5 +2,5 @@ from django.apps import AppConfig
class PagesConfig(AppConfig):
- default_auto_field = 'django.db.models.BigAutoField'
- name = 'pages'
+ default_auto_field = "django.db.models.BigAutoField"
+ name = "alphabetlearning.pages"
diff --git a/alphabetlearning/resources/tests/test_forms.py b/alphabetlearning/resources/tests/test_forms.py
index aebc110..66d6d43 100644
--- a/alphabetlearning/resources/tests/test_forms.py
+++ b/alphabetlearning/resources/tests/test_forms.py
@@ -1,14 +1,12 @@
import pytest
+from alphabetlearning.resources.factories import ResourceModelFactory
+from alphabetlearning.resources.forms import ResourceCreateForm
+from alphabetlearning.resources.models import ResourceCategory, ResourceType
from django.core.files.uploadedfile import SimpleUploadedFile
from django.db import IntegrityError
from django.test import TestCase
from django.utils.datastructures import MultiValueDict
-from alphabetlearning.resources.factories import ResourceModelFactory
-from alphabetlearning.resources.forms import ResourceCreateForm
-from alphabetlearning.resources.models import ResourceCategory
-from alphabetlearning.resources.models import ResourceType
-
class ResourceCreateFormTest(TestCase):
def setUp(self):
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__)
diff --git a/alphabetlearning/templates/base.html b/alphabetlearning/templates/base.html
index ecab232..2e28333 100644
--- a/alphabetlearning/templates/base.html
+++ b/alphabetlearning/templates/base.html
@@ -96,12 +96,12 @@
{% if request.user.is_authenticated %}
<li class="nav-item">
<a class="nav-link text-dark fw-bold"
- href="{% url "payments:cart_detail" %}">Your Basket</a>
+ href="{% url "payments:cart_detail" %}">Shopping Basket</a>
</li>
{% else %}
<li class="nav-item">
<p class="nav-link text-gray fw-bold">
- Your Basket
+ Shopping Basket
</p>
</li>
{% endif %}