diff --git a/app/migrations/0032_alter_person_search_name.py b/app/migrations/0032_alter_person_search_name.py new file mode 100644 index 0000000..9c955eb --- /dev/null +++ b/app/migrations/0032_alter_person_search_name.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.5 on 2021-11-28 05:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('app', '0031_auto_20211128_0514'), + ] + + operations = [ + migrations.AlterField( + model_name='person', + name='search_name', + field=models.CharField(blank=True, max_length=100, null=True), + ), + ] diff --git a/app/models.py b/app/models.py index 230ae41..088abf7 100644 --- a/app/models.py +++ b/app/models.py @@ -546,7 +546,7 @@ class Person(models.Model): mr_mrs = models.TextField(blank=True, null=True, choices=MR_MRS_CHOICES) full_name = models.CharField(blank=True, null=True, max_length=100) - search_name = models.TextField(blank=True, null=True, max_length=100) + search_name = models.CharField(blank=True, null=True, max_length=100) email_2 = models.EmailField(blank=True, null=True) skype = models.CharField(blank=True, null=True, max_length=50) professional_phone = models.CharField(blank=True, null=True, max_length=50)