diff options
| author | JT | 2013-08-13 18:48:49 -0500 |
|---|---|---|
| committer | JT | 2013-08-13 18:48:49 -0500 |
| commit | 2f03870ae12479cbfdce68db1a30bad6fa15b311 (patch) | |
| tree | 7fb721ff709546f99f5950e4dd0c87919375a334 /rest_framework/fields.py | |
| parent | 999056cde1c6355d5ca036f109b35b41cb9d47cc (diff) | |
| download | django-rest-framework-2f03870ae12479cbfdce68db1a30bad6fa15b311.tar.bz2 | |
Fix for "No module named compat"
Diffstat (limited to 'rest_framework/fields.py')
| -rw-r--r-- | rest_framework/fields.py | 2 |
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 |
