mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 09:37:03 +02:00
Linting, remove domain notes
This commit is contained in:
parent
a758bfe512
commit
6415c645ee
3 changed files with 2 additions and 8 deletions
|
@ -994,7 +994,7 @@ class DomainAdmin(ListHeaderAdmin):
|
|||
fieldsets = (
|
||||
(
|
||||
None,
|
||||
{"fields": ["name", "state", "expiration_date", "first_ready", "deleted", "domain_notes"]},
|
||||
{"fields": ["name", "state", "expiration_date", "first_ready", "deleted"]},
|
||||
),
|
||||
)
|
||||
|
||||
|
|
|
@ -992,12 +992,6 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
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):
|
||||
return self.state == Domain.State.CREATED
|
||||
|
||||
|
|
|
@ -241,7 +241,7 @@ class DomainInformation(TimeStampedModel):
|
|||
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)
|
||||
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
|
||||
common_fields = domain_app_fields & domain_info_fields
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue