From 41c07e711ac2b3fa17b30bde1eb8c43dc46f20f2 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 22 Feb 2021 13:30:17 +0000 Subject: [PATCH] renamed email template file --- companies/tests.py | 1 - companies/views.py | 1 + core/utils.py | 1 + ...confirm_contact_company.html => confirm_company_contact.html} | 0 4 files changed, 2 insertions(+), 1 deletion(-) rename templates/{confirm_contact_company.html => confirm_company_contact.html} (100%) diff --git a/companies/tests.py b/companies/tests.py index a247b4b..161d2a4 100644 --- a/companies/tests.py +++ b/companies/tests.py @@ -263,7 +263,6 @@ class CompanyViewSetTest(APITestCase): self.assertFalse(self.model.objects.filter(id=instance.pk).exists()) - class MyCompanyViewTest(APITestCase): """CompanyViewset tests """ diff --git a/companies/views.py b/companies/views.py index 18634a5..e784a6c 100644 --- a/companies/views.py +++ b/companies/views.py @@ -1,4 +1,5 @@ import logging +import json from django.shortcuts import render, get_object_or_404 from django.core.mail import EmailMessage diff --git a/core/utils.py b/core/utils.py index 38ba7fc..732b99b 100644 --- a/core/utils.py +++ b/core/utils.py @@ -32,6 +32,7 @@ def get_tokens_for_user(user): 'access': str(refresh.access_token), } + def get_auth_token(client, email, password): credentials = { 'email': email, diff --git a/templates/confirm_contact_company.html b/templates/confirm_company_contact.html similarity index 100% rename from templates/confirm_contact_company.html rename to templates/confirm_company_contact.html