fix conflict
This commit is contained in:
@@ -44,8 +44,8 @@ class CreatedBy(models.Model):
|
||||
|
||||
|
||||
class Organization(models.Model):
|
||||
name = models.CharField(max_length=255, help_text="What is the name of your organization?")
|
||||
email = models.EmailField(help_text="What is your email?")
|
||||
name = models.CharField(max_length=255, unique=True, help_text="What is the name of your organization?")
|
||||
email = models.EmailField(unique=True, help_text="What is your email?")
|
||||
employee_headcount = models.CharField(max_length=20, help_text="What is your organization's current employee headcount?")
|
||||
annual_revenue = models.CharField(max_length=20, help_text="What is your organization's annual revenue range?")
|
||||
critical_applications = models.CharField(max_length=20, help_text="How many critical business applications do your employees use daily?")
|
||||
|
||||
@@ -8,6 +8,8 @@ from backend.accounts.utils import send_confirmation_email, send_document_email
|
||||
from django.contrib.admin.views.decorators import staff_member_required
|
||||
from django.template import Template, Context
|
||||
from .utils import generate_pdf
|
||||
from django.conf import settings
|
||||
site_domain = settings.SITE_DOMAIN
|
||||
|
||||
|
||||
|
||||
@@ -110,7 +112,7 @@ def payment_page(request):
|
||||
document = get_object_or_404(Document, organization=organization)
|
||||
|
||||
if request.method == "POST":
|
||||
pdf_url = f"http://127.0.0.1:8000/pdf/{document.id}"
|
||||
pdf_url = f"{site_domain}/document/{document.id}/"
|
||||
send_document_email(email, pdf_url, document)
|
||||
return redirect(pdf_url)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user