Updated the assertion message of the ImageField.

This commit is contained in:
Omer Katz 2013-11-27 13:26:49 +02:00
parent 2dce8d7a8a
commit b8f8fb7779

View File

@ -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.