Skip to content

Commit

Permalink
Move import to top of file
Browse files Browse the repository at this point in the history
  • Loading branch information
okeneo committed Feb 27, 2024
1 parent 854e741 commit 02aa2f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/account/controller.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from django.conf import settings
from django.core.exceptions import ValidationError
from django.core.validators import validate_email
from django.urls import reverse_lazy

from .models import (
UserProfile,
Expand Down Expand Up @@ -37,8 +38,6 @@ def send_verification_email(template_type, email, token_key):
email (str): Recipient's email address.
token_key (str): Unique token key for email verification.
"""
from django.urls import reverse_lazy

template = EMAIL_TEMPLATES.get(template_type)
if not template:
raise ValueError(f"Unsupported email template: {template}.")
Expand Down

0 comments on commit 02aa2f8

Please sign in to comment.