diff --git a/src/genlab_bestilling/migrations/0029_alter_order_contact_email_alter_order_contact_person.py b/src/genlab_bestilling/migrations/0029_alter_order_contact_email_alter_order_contact_person.py new file mode 100644 index 00000000..c0969e59 --- /dev/null +++ b/src/genlab_bestilling/migrations/0029_alter_order_contact_email_alter_order_contact_person.py @@ -0,0 +1,28 @@ +# Generated by Django 5.2.3 on 2025-07-18 07:58 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("genlab_bestilling", "0028_sample_is_isolated_sample_is_marked_and_more"), + ] + + operations = [ + migrations.AlterField( + model_name="order", + name="contact_email", + field=models.EmailField( + help_text="Email to contact with questions about this order", + max_length=254, + null=True, + ), + ), + migrations.AlterField( + model_name="order", + name="contact_person", + field=models.CharField( + help_text="Person to contact with questions about this order", null=True + ), + ), + ] diff --git a/src/genlab_bestilling/models.py b/src/genlab_bestilling/models.py index 747faa89..6e2b9fef 100644 --- a/src/genlab_bestilling/models.py +++ b/src/genlab_bestilling/models.py @@ -280,12 +280,12 @@ class OrderPriority: ) contact_person = models.CharField( null=True, - blank=True, + blank=False, help_text="Person to contact with questions about this order", ) contact_email = models.EmailField( null=True, - blank=True, + blank=False, help_text="Email to contact with questions about this order", ) responsible_staff = models.ManyToManyField(