diff options
| author | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-05-22 19:29:05 +0200 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2024-05-22 16:38:28 -0300 |
| commit | 501e32a7f5012aa014931a39699391d91ca0a9be (patch) | |
| tree | a500e8f07dc44f0b713b0cae688c01b5f1306504 | |
| parent | a190c03afec0feef27e097727569ba064b97ac7a (diff) | |
[5.1.x] Fixed #35472 -- Used temporary directory in test_imagefield.NoReadTests.
Backport of 7e39ae5c8cf4c6601a4f47b72914349481c5331b from main.
| -rw-r--r-- | tests/model_fields/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model_fields/models.py b/tests/model_fields/models.py index 18a6fdbc1c..652c808b40 100644 --- a/tests/model_fields/models.py +++ b/tests/model_fields/models.py @@ -383,7 +383,7 @@ if Image: mugshot = models.ImageField( upload_to="tests", - storage=NoReadFileSystemStorage(), + storage=NoReadFileSystemStorage(temp_storage_dir), width_field="mugshot_width", height_field="mugshot_height", ) |
