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