From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Sun, 20 Oct 2024 18:23:46 +0000 (-0700) Subject: Use a TextField for the storage path field (#7967) X-Git-Tag: v2.13.1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=544e9c4fe214bbd706853044cd4fd95b4f88af29;p=thirdparty%2Fpaperless-ngx.git Use a TextField for the storage path field (#7967) --- diff --git a/src/documents/migrations/1055_alter_storagepath_path.py b/src/documents/migrations/1055_alter_storagepath_path.py index 8231aacd73..1421bf824b 100644 --- a/src/documents/migrations/1055_alter_storagepath_path.py +++ b/src/documents/migrations/1055_alter_storagepath_path.py @@ -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, diff --git a/src/documents/models.py b/src/documents/models.py index 23325739c8..37c86305c6 100644 --- a/src/documents/models.py +++ b/src/documents/models.py @@ -125,9 +125,8 @@ class DocumentType(MatchingModel): class StoragePath(MatchingModel): - path = models.CharField( + path = models.TextField( _("path"), - max_length=2048, ) class Meta(MatchingModel.Meta):