From 61ee109c52babc0fad4b70894e1a5f169cf7862d Mon Sep 17 00:00:00 2001 From: Ole Magnus Fon Johnsen Date: Tue, 8 Jul 2025 12:24:26 +0200 Subject: [PATCH] Make responsible staff blank --- .../0023_alter_order_responsible_staff.py | 25 +++++++++++++++++++ src/genlab_bestilling/models.py | 1 + 2 files changed, 26 insertions(+) create mode 100644 src/genlab_bestilling/migrations/0023_alter_order_responsible_staff.py diff --git a/src/genlab_bestilling/migrations/0023_alter_order_responsible_staff.py b/src/genlab_bestilling/migrations/0023_alter_order_responsible_staff.py new file mode 100644 index 00000000..0848c783 --- /dev/null +++ b/src/genlab_bestilling/migrations/0023_alter_order_responsible_staff.py @@ -0,0 +1,25 @@ +# Generated by Django 5.2.3 on 2025-07-08 10:19 + +from django.conf import settings +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("genlab_bestilling", "0022_sample_internal_note"), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.AlterField( + model_name="order", + name="responsible_staff", + field=models.ManyToManyField( + blank=True, + help_text="Staff members responsible for this order", + related_name="responsible_orders", + to=settings.AUTH_USER_MODEL, + verbose_name="Responsible staff", + ), + ), + ] diff --git a/src/genlab_bestilling/models.py b/src/genlab_bestilling/models.py index cbc645f0..8667dcc0 100644 --- a/src/genlab_bestilling/models.py +++ b/src/genlab_bestilling/models.py @@ -285,6 +285,7 @@ class OrderPriority: related_name="responsible_orders", verbose_name="Responsible staff", help_text="Staff members responsible for this order", + blank=True, ) is_seen = models.BooleanField( default=False, help_text="If an order has been seen by a staff"