Commit 2f03870a by JT

Fix for "No module named compat"

parent 999056cd
...@@ -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