aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/fields.py
diff options
context:
space:
mode:
authorJT2013-08-13 18:48:49 -0500
committerJT2013-08-13 18:48:49 -0500
commit2f03870ae12479cbfdce68db1a30bad6fa15b311 (patch)
tree7fb721ff709546f99f5950e4dd0c87919375a334 /rest_framework/fields.py
parent999056cde1c6355d5ca036f109b35b41cb9d47cc (diff)
downloaddjango-rest-framework-2f03870ae12479cbfdce68db1a30bad6fa15b311.tar.bz2
Fix for "No module named compat"
Diffstat (limited to 'rest_framework/fields.py')
-rw-r--r--rest_framework/fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/fields.py b/rest_framework/fields.py
index f9931887..add9d224 100644
--- a/rest_framework/fields.py
+++ b/rest_framework/fields.py
@@ -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