mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 08:14:16 +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:
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user