Commit 5311f781 by Tom Christie

Merge pull request #1039 from rotajota/master

Fix for "No module named compat"
parents 999056cd 2f03870a
...@@ -924,7 +924,7 @@ class ImageField(FileField): ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment