Skip to content

Commit

Permalink
Merge pull request #1783 from cisagov/dk/1041-contact-labels
Browse files Browse the repository at this point in the history
Issue #1041: Django contacts - remove redundant labels
  • Loading branch information
dave-kennedy-ecs authored Feb 15, 2024
2 parents d6b1744 + 607e81a commit 6874f8e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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"),
),
]
6 changes: 0 additions & 6 deletions src/registrar/models/contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,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,
)

Expand Down

0 comments on commit 6874f8e

Please sign in to comment.