From da30c2dda04ae7ae4fb00d318d9c306cd8cf9103 Mon Sep 17 00:00:00 2001 From: David Kennedy Date: Wed, 14 Feb 2024 16:45:50 -0500 Subject: [PATCH] removed help_text from fields in contact model --- ...email_alter_contact_first_name_and_more.py | 45 +++++++++++++++++++ src/registrar/models/contact.py | 6 --- 2 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 src/registrar/migrations/0069_alter_contact_email_alter_contact_first_name_and_more.py diff --git a/src/registrar/migrations/0069_alter_contact_email_alter_contact_first_name_and_more.py b/src/registrar/migrations/0069_alter_contact_email_alter_contact_first_name_and_more.py new file mode 100644 index 000000000..5869e6fae --- /dev/null +++ b/src/registrar/migrations/0069_alter_contact_email_alter_contact_first_name_and_more.py @@ -0,0 +1,45 @@ +# Generated by Django 4.2.7 on 2024-02-14 21:45 + +from django.db import migrations, models +import phonenumber_field.modelfields + + +class Migration(migrations.Migration): + dependencies = [ + ("registrar", "0068_domainapplication_notes_domaininformation_notes"), + ] + + operations = [ + migrations.AlterField( + model_name="contact", + name="email", + field=models.EmailField(blank=True, db_index=True, max_length=254, null=True), + ), + migrations.AlterField( + model_name="contact", + name="first_name", + field=models.TextField(blank=True, db_index=True, null=True, verbose_name="first name / given name"), + ), + migrations.AlterField( + model_name="contact", + name="last_name", + field=models.TextField(blank=True, db_index=True, null=True, verbose_name="last name / family name"), + ), + migrations.AlterField( + model_name="contact", + name="middle_name", + field=models.TextField(blank=True, null=True), + ), + migrations.AlterField( + model_name="contact", + name="phone", + field=phonenumber_field.modelfields.PhoneNumberField( + blank=True, db_index=True, max_length=128, null=True, region=None + ), + ), + migrations.AlterField( + model_name="contact", + name="title", + field=models.TextField(blank=True, null=True, verbose_name="title or role in your organization"), + ), + ] diff --git a/src/registrar/models/contact.py b/src/registrar/models/contact.py index ff7389780..ca1ff74c4 100644 --- a/src/registrar/models/contact.py +++ b/src/registrar/models/contact.py @@ -19,38 +19,32 @@ class Contact(TimeStampedModel): first_name = models.TextField( null=True, blank=True, - help_text="First name", verbose_name="first name / given name", db_index=True, ) middle_name = models.TextField( null=True, blank=True, - help_text="Middle name (optional)", ) last_name = models.TextField( null=True, blank=True, - help_text="Last name", verbose_name="last name / family name", db_index=True, ) title = models.TextField( null=True, blank=True, - help_text="Title", verbose_name="title or role in your organization", ) email = models.EmailField( null=True, blank=True, - help_text="Email", db_index=True, ) phone = PhoneNumberField( null=True, blank=True, - help_text="Phone", db_index=True, )