From 12f4f95405c7857cbf2f4bf4d0261154aac31676 Mon Sep 17 00:00:00 2001 From: YashRaj1506 Date: Tue, 24 Dec 2024 03:34:00 +0530 Subject: [PATCH] Fixed #35740 -- Fixed FileFieldStorageTests.test_extended_length_storage when using bcachefs. PC_NAME_MAX on bcachefs is 512, which was greater than the file field max_length. --- tests/file_storage/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/file_storage/models.py b/tests/file_storage/models.py index cb0207cae9..12a54edda5 100644 --- a/tests/file_storage/models.py +++ b/tests/file_storage/models.py @@ -80,5 +80,5 @@ class Storage(models.Model): storage=temp_storage, upload_to="tests", max_length=20 ) extended_length = models.FileField( - storage=temp_storage, upload_to="tests", max_length=300 + storage=temp_storage, upload_to="tests", max_length=1024 )