aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/compat.py
diff options
context:
space:
mode:
authorTom Christie2014-09-26 17:06:20 +0100
committerTom Christie2014-09-26 17:06:20 +0100
commitdee3f78cb688b1bee892ef78d6eec23ccf67a80e (patch)
treebfae7d0bfaf16c622e6c7c0deac2395c0379dbe8 /rest_framework/compat.py
parentac71d9aaae27f620fdb0167a4ad586e754a844a3 (diff)
downloaddjango-rest-framework-dee3f78cb688b1bee892ef78d6eec23ccf67a80e.tar.bz2
FileField and ImageField
Diffstat (limited to 'rest_framework/compat.py')
-rw-r--r--rest_framework/compat.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/rest_framework/compat.py b/rest_framework/compat.py
index 7303c32a..89af9b48 100644
--- a/rest_framework/compat.py
+++ b/rest_framework/compat.py
@@ -84,15 +84,6 @@ except ImportError:
from collections import UserDict
from collections import MutableMapping as DictMixin
-# Try to import PIL in either of the two ways it can end up installed.
-try:
- from PIL import Image
-except ImportError:
- try:
- import Image
- except ImportError:
- Image = None
-
def get_model_name(model_cls):
try: