1
0
mirror of https://github.com/django/django.git synced 2025-04-15 12:54:38 +00:00

[5.1.x] Fixed #35472 -- Used temporary directory in test_imagefield.NoReadTests.

Backport of 7e39ae5c8cf4c6601a4f47b72914349481c5331b from main.
This commit is contained in:
Sarah Boyce 2024-05-22 19:29:05 +02:00 committed by Natalia
parent a190c03afe
commit 501e32a7f5

View File

@ -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",
)