From 36076aaa5ffdd9f88878ebcc1185b973d8bda1f6 Mon Sep 17 00:00:00 2001 From: 0ssigeno Date: Thu, 26 Oct 2023 12:52:58 +0200 Subject: [PATCH] Added migration --- .../migrations/0004_for_user_blank.py | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 certego_saas/apps/notifications/migrations/0004_for_user_blank.py diff --git a/certego_saas/apps/notifications/migrations/0004_for_user_blank.py b/certego_saas/apps/notifications/migrations/0004_for_user_blank.py new file mode 100644 index 0000000..a9b6d76 --- /dev/null +++ b/certego_saas/apps/notifications/migrations/0004_for_user_blank.py @@ -0,0 +1,23 @@ +from django.conf import settings +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("certego_saas_notifications", "0003_for_user"), + ] + + operations = [ + migrations.AlterField( + model_name="notification", + name="for_user", + field=models.ForeignKey( + settings.AUTH_USER_MODEL, + related_name="notifications", + help_text="If the field is empty, the notification is for everyone; otherwise only for the specified user", + null=True, + blank=True, + on_delete=models.CASCADE, + ), + ), + ]