diff --git a/payroll/migrations/0011_alter_vacancy_appointee_name_and_more.py b/payroll/migrations/0011_alter_vacancy_appointee_name_and_more.py new file mode 100644 index 00000000..61a1897a --- /dev/null +++ b/payroll/migrations/0011_alter_vacancy_appointee_name_and_more.py @@ -0,0 +1,59 @@ +# Generated by Django 4.2.16 on 2024-11-18 13:52 + +import django.core.validators +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("payroll", "0010_alter_vacancy_appointee_name_and_more"), + ] + + operations = [ + migrations.AlterField( + model_name="vacancy", + name="appointee_name", + field=models.CharField( + blank=True, + max_length=255, + null=True, + validators=[ + django.core.validators.RegexValidator( + message="Only letters, spaces, - and ' are allowed.", + regex="^[a-zA-Z '-]*$", + ) + ], + ), + ), + migrations.AlterField( + model_name="vacancy", + name="hiring_manager", + field=models.CharField( + blank=True, + max_length=255, + null=True, + validators=[ + django.core.validators.RegexValidator( + message="Only letters, spaces, - and ' are allowed.", + regex="^[a-zA-Z '-]*$", + ) + ], + ), + ), + migrations.AlterField( + model_name="vacancy", + name="hr_ref", + field=models.CharField( + blank=True, + max_length=255, + null=True, + validators=[ + django.core.validators.RegexValidator( + message="Only letters, spaces, - and ' are allowed.", + regex="^[a-zA-Z '-]*$", + ) + ], + ), + ), + ] diff --git a/payroll/models.py b/payroll/models.py index dbce930e..807c36d6 100644 --- a/payroll/models.py +++ b/payroll/models.py @@ -162,7 +162,7 @@ class Meta: validators=[ RegexValidator( regex=r"^[a-zA-Z '-]*$", - message="Only letters, spaces, - and ' are allowed", + message="Only letters, spaces, - and ' are allowed.", ) ], ) @@ -173,7 +173,7 @@ class Meta: validators=[ RegexValidator( regex=r"^[a-zA-Z '-]*$", - message="Only letters, spaces, - and ' are allowed", + message="Only letters, spaces, - and ' are allowed.", ) ], ) @@ -184,7 +184,7 @@ class Meta: validators=[ RegexValidator( regex=r"^[a-zA-Z '-]*$", - message="Only letters, spaces, - and ' are allowed", + message="Only letters, spaces, - and ' are allowed.", ) ], )