mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 12:17:24 +03:00
Merge pull request #1039 from rotajota/master
Fix for "No module named compat"
This commit is contained in:
commit
5311f781ff
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user