mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
[5.1.x] Fixed #35472 -- Used temporary directory in test_imagefield.NoReadTests.
Backport of 7e39ae5c8c from main.
This commit is contained in:
@@ -383,7 +383,7 @@ if Image:
|
|||||||
|
|
||||||
mugshot = models.ImageField(
|
mugshot = models.ImageField(
|
||||||
upload_to="tests",
|
upload_to="tests",
|
||||||
storage=NoReadFileSystemStorage(),
|
storage=NoReadFileSystemStorage(temp_storage_dir),
|
||||||
width_field="mugshot_width",
|
width_field="mugshot_width",
|
||||||
height_field="mugshot_height",
|
height_field="mugshot_height",
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user