Merge pull request #1039 from rotajota/master

Fix for "No module named compat"
This commit is contained in:
Tom Christie 2013-08-14 05:14:22 -07:00
commit 5311f781ff

View File

@ -924,7 +924,7 @@ class ImageField(FileField):
if f is None:
return None
from compat import Image
from rest_framework.compat import Image
assert Image is not None, 'PIL must be installed for ImageField support'
# We need to get a file object for PIL. We might have a path or we might