Fix for "No module named compat"

This commit is contained in:
JT 2013-08-13 18:48:49 -05:00
parent 999056cde1
commit 2f03870ae1

View File

@ -924,7 +924,7 @@ class ImageField(FileField):
if f is None: if f is None:
return 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' 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 # We need to get a file object for PIL. We might have a path or we might