]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Inreases the length to 5, allowing for commas as well as values (#4719)
authorTrenton H <797416+stumpylog@users.noreply.github.com>
Thu, 30 Nov 2023 15:00:54 +0000 (07:00 -0800)
committerGitHub <noreply@github.com>
Thu, 30 Nov 2023 15:00:54 +0000 (07:00 -0800)
src/documents/migrations/1041_alter_consumptiontemplate_sources.py [new file with mode: 0644]
src/documents/models.py

diff --git a/src/documents/migrations/1041_alter_consumptiontemplate_sources.py b/src/documents/migrations/1041_alter_consumptiontemplate_sources.py
new file mode 100644 (file)
index 0000000..c96dc53
--- /dev/null
@@ -0,0 +1,22 @@
+# Generated by Django 4.2.7 on 2023-11-30 14:29
+
+import multiselectfield.db.fields
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+    dependencies = [
+        ("documents", "1040_customfield_customfieldinstance_and_more"),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name="consumptiontemplate",
+            name="sources",
+            field=multiselectfield.db.fields.MultiSelectField(
+                choices=[(1, "Consume Folder"), (2, "Api Upload"), (3, "Mail Fetch")],
+                default="1,2,3",
+                max_length=5,
+            ),
+        ),
+    ]
index 04a3230e6ce25e3267311f6463e1b11e1923851a..c3eea0ac9b03685eaeeabc876b25253d87fa01a7 100644 (file)
@@ -754,7 +754,7 @@ class ConsumptionTemplate(models.Model):
     order = models.IntegerField(_("order"), default=0)
 
     sources = MultiSelectField(
-        max_length=3,
+        max_length=5,
         choices=DocumentSourceChoices.choices,
         default=f"{DocumentSource.ConsumeFolder},{DocumentSource.ApiUpload},{DocumentSource.MailFetch}",
     )