mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Updated the assertion message of the ImageField.
This commit is contained in:
parent
2dce8d7a8a
commit
b8f8fb7779
|
@ -966,7 +966,7 @@ class ImageField(FileField):
|
|||
return None
|
||||
|
||||
from rest_framework.compat import Image
|
||||
assert Image is not None, 'PIL must be installed for ImageField support'
|
||||
assert Image is not None, 'Either Pillow or PIL must be installed for ImageField support.'
|
||||
|
||||
# We need to get a file object for PIL. We might have a path or we might
|
||||
# have to read the data into memory.
|
||||
|
|
Loading…
Reference in New Issue
Block a user