]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Use a TextField for the storage path field (#7967)
authorTrenton H <797416+stumpylog@users.noreply.github.com>
Sun, 20 Oct 2024 18:23:46 +0000 (11:23 -0700)
committerGitHub <noreply@github.com>
Sun, 20 Oct 2024 18:23:46 +0000 (11:23 -0700)
src/documents/migrations/1055_alter_storagepath_path.py
src/documents/models.py

index 8231aacd73c50a4fe4ab286a933bde5a4133b889..1421bf824b63d526b625a0279c9df5b1c0a7e162 100644 (file)
@@ -27,7 +27,7 @@ class Migration(migrations.Migration):
         migrations.AlterField(
             model_name="storagepath",
             name="path",
-            field=models.CharField(max_length=2048, verbose_name="path"),
+            field=models.TextField(verbose_name="path"),
         ),
         migrations.RunPython(
             convert_from_format_to_template,
index 23325739c89a44bd4c75376857120e915b31f379..37c86305c69ea58eadeb21f2c9a6e5f810ea4e85 100644 (file)
@@ -125,9 +125,8 @@ class DocumentType(MatchingModel):
 
 
 class StoragePath(MatchingModel):
-    path = models.CharField(
+    path = models.TextField(
         _("path"),
-        max_length=2048,
     )
 
     class Meta(MatchingModel.Meta):