more fixes

This commit is contained in:
CocoByte 2024-06-11 14:59:04 -06:00
parent 4b40c52a3c
commit dc48025a1d
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
2 changed files with 33 additions and 1 deletions

View file

@ -1,4 +1,4 @@
# Generated by Django 4.2.10 on 2024-06-11 20:18
# Generated by Django 4.2.10 on 2024-06-11 20:53
from django.db import migrations, models
@ -24,6 +24,20 @@ class Migration(migrations.Migration):
blank=True, db_index=True, null=True, verbose_name="CISA regional representative last name"
),
),
migrations.AddField(
model_name="domaininformation",
name="has_anything_else_text",
field=models.BooleanField(
blank=True, help_text="Determines if the user has a anything_else or not", null=True
),
),
migrations.AddField(
model_name="domaininformation",
name="has_cisa_representative",
field=models.BooleanField(
blank=True, help_text="Determines if the user has a representative email or not", null=True
),
),
migrations.AddField(
model_name="domainrequest",
name="cisa_representative_first_name",

View file

@ -214,6 +214,15 @@ class DomainInformation(TimeStampedModel):
verbose_name="Additional details",
)
# This is a drop-in replacement for a has_anything_else_text() function.
# In order to track if the user has clicked the yes/no field (while keeping a none default), we need
# a tertiary state. We should not display this in /admin.
has_anything_else_text = models.BooleanField(
null=True,
blank=True,
help_text="Determines if the user has a anything_else or not",
)
cisa_representative_email = models.EmailField(
null=True,
blank=True,
@ -235,6 +244,15 @@ class DomainInformation(TimeStampedModel):
db_index=True,
)
# This is a drop-in replacement for an has_cisa_representative() function.
# In order to track if the user has clicked the yes/no field (while keeping a none default), we need
# a tertiary state. We should not display this in /admin.
has_cisa_representative = models.BooleanField(
null=True,
blank=True,
help_text="Determines if the user has a representative email or not",
)
is_policy_acknowledged = models.BooleanField(
null=True,
blank=True,