Linting, remove domain notes

This commit is contained in:
zandercymatics 2024-01-25 08:17:00 -07:00
parent a758bfe512
commit 6415c645ee
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 2 additions and 8 deletions

View file

@ -994,7 +994,7 @@ class DomainAdmin(ListHeaderAdmin):
fieldsets = ( fieldsets = (
( (
None, None,
{"fields": ["name", "state", "expiration_date", "first_ready", "deleted", "domain_notes"]}, {"fields": ["name", "state", "expiration_date", "first_ready", "deleted"]},
), ),
) )

View file

@ -992,12 +992,6 @@ class Domain(TimeStampedModel, DomainHelper):
help_text="The last time this domain moved into the READY state", help_text="The last time this domain moved into the READY state",
) )
domain_notes = models.TextField(
null=True,
blank=True,
help_text="Notes about this domain",
)
def isActive(self): def isActive(self):
return self.state == Domain.State.CREATED return self.state == Domain.State.CREATED

View file

@ -241,7 +241,7 @@ class DomainInformation(TimeStampedModel):
domain_info_fields = set(field.name for field in DomainInformation._meta.get_fields() if field != "id") domain_info_fields = set(field.name for field in DomainInformation._meta.get_fields() if field != "id")
# Get a list of all many_to_many relations on DomainInformation (needs to be saved differently) # Get a list of all many_to_many relations on DomainInformation (needs to be saved differently)
info_many_to_many_fields = {field.name for field in DomainInformation._meta.many_to_many} info_many_to_many_fields = {field.name for field in DomainInformation._meta.many_to_many} # type: ignore
# Get the fields that exist on both DomainApplication and DomainInformation # Get the fields that exist on both DomainApplication and DomainInformation
common_fields = domain_app_fields & domain_info_fields common_fields = domain_app_fields & domain_info_fields