diff options
Diffstat (limited to 'tests/modeltests/model_forms/models.py')
| -rw-r--r-- | tests/modeltests/model_forms/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modeltests/model_forms/models.py b/tests/modeltests/model_forms/models.py index 3463cb7554..8ab264dae2 100644 --- a/tests/modeltests/model_forms/models.py +++ b/tests/modeltests/model_forms/models.py @@ -75,7 +75,7 @@ class ImageFile(models.Model): # Checking for the existence of Image is enough for CPython, but # for PyPy, you need to check for the underlying modules # If PIL is not available, this test is equivalent to TextFile above. - import Image, _imaging + from PIL import Image, _imaging image = models.ImageField(storage=temp_storage, upload_to='tests') except ImportError: image = models.FileField(storage=temp_storage, upload_to='tests') |
