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, + ), + ), + ]