#10 Dodat je dummy za payment page, mailovi za payment i link za dokument
This commit is contained in:
@@ -4,7 +4,7 @@ from backend.accounts.forms import SignupForm
|
||||
from .models import EmailConfirmation
|
||||
from django.shortcuts import get_object_or_404, render
|
||||
from django.http import HttpResponse
|
||||
from backend.accounts.utils import send_confirmation_email
|
||||
from backend.accounts.utils import send_confirmation_email, send_payment_email
|
||||
from .tasks import create_document_for_organization
|
||||
|
||||
class SignUpView(CreateView):
|
||||
@@ -20,7 +20,7 @@ def confirm_email(request, uuid):
|
||||
return render(request, 'confirmation_expired.html', {'email': confirmation.email})
|
||||
|
||||
task = create_document_for_organization.delay(confirmation.email)
|
||||
print(f"Task ID: {task.id}")
|
||||
send_payment_email(confirmation.email)
|
||||
|
||||
|
||||
return HttpResponse("Email is confirmed")
|
||||
|
||||
Reference in New Issue
Block a user