trying to get new templates to work

This commit is contained in:
Sam
2021-03-15 10:49:17 +00:00
parent 5714a661aa
commit a920a9fa61
6 changed files with 214 additions and 31 deletions

View File

@@ -292,7 +292,7 @@ def purchase_email(request):
return Response({"error": "Related compay has no contact email address"}, status=status.HTTP_406_NOT_ACCEPTABLE)
try:
# send email to company
company_message = render_to_string('purchase_notification.html', {
company_message = render_to_string('purchase_notification_v2.html', {
'company': company,
'user': request.user,
'product': product,