mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 19:09:22 +02:00
linter errors
This commit is contained in:
parent
2e3ff9e547
commit
7d9eabb727
2 changed files with 0 additions and 3 deletions
|
@ -828,7 +828,6 @@ class DomainRequest(TimeStampedModel):
|
||||||
DraftDomain = apps.get_model("registrar.DraftDomain")
|
DraftDomain = apps.get_model("registrar.DraftDomain")
|
||||||
if not DraftDomain.string_could_be_domain(self.requested_domain.name):
|
if not DraftDomain.string_could_be_domain(self.requested_domain.name):
|
||||||
raise ValueError("Requested domain is not a valid domain name.")
|
raise ValueError("Requested domain is not a valid domain name.")
|
||||||
logger.info(f"Draft Domain")
|
|
||||||
# if the domain has not been submitted before this must be the first time
|
# if the domain has not been submitted before this must be the first time
|
||||||
if not self.first_submitted_date:
|
if not self.first_submitted_date:
|
||||||
self.first_submitted_date = timezone.now().date()
|
self.first_submitted_date = timezone.now().date()
|
||||||
|
@ -836,7 +835,6 @@ class DomainRequest(TimeStampedModel):
|
||||||
# Update last_submitted_date to today
|
# Update last_submitted_date to today
|
||||||
self.last_submitted_date = timezone.now().date()
|
self.last_submitted_date = timezone.now().date()
|
||||||
self.save()
|
self.save()
|
||||||
logger.info(f"updated submission date")
|
|
||||||
|
|
||||||
# Limit email notifications to transitions from Started and Withdrawn
|
# Limit email notifications to transitions from Started and Withdrawn
|
||||||
limited_statuses = [self.DomainRequestStatus.STARTED, self.DomainRequestStatus.WITHDRAWN]
|
limited_statuses = [self.DomainRequestStatus.STARTED, self.DomainRequestStatus.WITHDRAWN]
|
||||||
|
|
|
@ -2003,7 +2003,6 @@ class TestDomainChangeNotifications(TestDomainOverview):
|
||||||
super().tearDownClass()
|
super().tearDownClass()
|
||||||
AllowedEmail.objects.all().delete()
|
AllowedEmail.objects.all().delete()
|
||||||
|
|
||||||
|
|
||||||
@boto3_mocking.patching
|
@boto3_mocking.patching
|
||||||
@less_console_noise_decorator
|
@less_console_noise_decorator
|
||||||
def test_notification_on_org_name_change(self):
|
def test_notification_on_org_name_change(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue