diff options
| author | Omer Katz | 2013-11-27 13:26:49 +0200 | 
|---|---|---|
| committer | Omer Katz | 2013-11-27 13:26:49 +0200 | 
| commit | b8f8fb7779dc01b5117e468345aaf99304f807ac (patch) | |
| tree | d939afaaf9ae499a18265bdffc5cdc2cdcf66412 /rest_framework | |
| parent | 2dce8d7a8a0e64f84994b6ac437e2d96920f094e (diff) | |
| download | django-rest-framework-b8f8fb7779dc01b5117e468345aaf99304f807ac.tar.bz2 | |
Updated the assertion message of the ImageField.
Diffstat (limited to 'rest_framework')
| -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 6c07dbb3..463d296f 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -966,7 +966,7 @@ class ImageField(FileField):              return None          from rest_framework.compat import Image -        assert Image is not None, 'PIL must be installed for ImageField support' +        assert Image is not None, 'Either Pillow or PIL must be installed for ImageField support.'          # We need to get a file object for PIL. We might have a path or we might          # have to read the data into memory.  | 
