aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-12-08 20:21:57 +0000
committerMatthew Lemon <y@yulqen.org>2024-12-08 20:21:57 +0000
commitc563c092c34dacef2a9bffd7b89a89f025b726e9 (patch)
treea41f474c8bea1a66f60d40412716429c66f067e2
parent181f5c6b8080b3b78e34362f6697379ccadfd581 (diff)
Tidy imports, remove breakpoint, remove logged in link
-rw-r--r--alphabetlearning/payments/views.py5
-rw-r--r--alphabetlearning/templates/base.html5
2 files changed, 3 insertions, 7 deletions
diff --git a/alphabetlearning/payments/views.py b/alphabetlearning/payments/views.py
index 5d8449d..7f13e81 100644
--- a/alphabetlearning/payments/views.py
+++ b/alphabetlearning/payments/views.py
@@ -2,7 +2,8 @@ import requests
import stripe
from django.conf import settings
from django.contrib.auth.decorators import login_required
-from django.core.mail import send_mail, mail_admins
+from django.core.mail import mail_admins
+from django.core.mail import send_mail
from django.http import HttpResponse
from django.http import HttpResponseBadRequest
from django.shortcuts import get_object_or_404
@@ -19,6 +20,7 @@ from alphabetlearning.payments.models import EmailSignup
from alphabetlearning.payments.models import EmailVerification
from alphabetlearning.resources.models import Resource
from alphabetlearning.users.models import User
+
from .forms import EmailVerificationForm
from .models import CartItem
from .models import Price
@@ -89,7 +91,6 @@ def send_mailgun_verification(
verification_url: str = None,
warn=False,
):
- breakpoint()
if warn:
warning_message = """
You are already subscribed to our list - no further action is required.
diff --git a/alphabetlearning/templates/base.html b/alphabetlearning/templates/base.html
index 533d0e8..5aa2193 100644
--- a/alphabetlearning/templates/base.html
+++ b/alphabetlearning/templates/base.html
@@ -96,11 +96,6 @@
<a class="nav-link text-dark fw-bold" href="https://blog.joannalemon.com/blog"
target="_blank">Blog</a>
</li>
- <li>
- {% if request.user.is_authenticated %}
- <a class="nav-link text-gray fw-bold" href="{% url "account_logout" %}">Log out</a>
- {% endif %}
- </li>
</ul>
</div>
</div>