diff --git a/src/paperless_mail/migrations/0018_processedmail.py b/src/paperless_mail/migrations/0018_processedmail.py index 18b44a93a..ded498a87 100644 --- a/src/paperless_mail/migrations/0018_processedmail.py +++ b/src/paperless_mail/migrations/0018_processedmail.py @@ -1,4 +1,4 @@ -# Generated by Django 4.1.5 on 2023-02-21 17:15 +# Generated by Django 4.1.5 on 2023-03-03 18:38 from django.conf import settings from django.db import migrations, models @@ -26,20 +26,47 @@ class Migration(migrations.Migration): verbose_name="ID", ), ), - ("folder", models.CharField(max_length=256, verbose_name="folder")), - ("uid", models.CharField(max_length=256, verbose_name="folder")), - ("subject", models.CharField(max_length=256, verbose_name="subject")), - ("received", models.DateTimeField(verbose_name="received")), + ( + "folder", + models.CharField( + editable=False, max_length=256, verbose_name="folder" + ), + ), + ( + "uid", + models.CharField( + editable=False, max_length=256, verbose_name="uid" + ), + ), + ( + "subject", + models.CharField( + editable=False, max_length=256, verbose_name="subject" + ), + ), + ( + "received", + models.DateTimeField(editable=False, verbose_name="received"), + ), ( "processed", models.DateTimeField( - default=django.utils.timezone.now, verbose_name="processed" + default=django.utils.timezone.now, + editable=False, + verbose_name="processed", + ), + ), + ( + "status", + models.CharField( + editable=False, max_length=256, verbose_name="status" ), ), - ("status", models.CharField(max_length=256, verbose_name="status")), ( "error", - models.TextField(blank=True, null=True, verbose_name="error"), + models.TextField( + blank=True, editable=False, null=True, verbose_name="error" + ), ), ( "owner", @@ -54,6 +81,7 @@ class Migration(migrations.Migration): ( "rule", models.ForeignKey( + editable=False, on_delete=django.db.models.deletion.CASCADE, to="paperless_mail.mailrule", ),