Permalink
Browse files

Fixed #1187 -- Added field name to error message for missing PIL. Tha…

…nks, akaihola

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1859 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent e3ba513 commit 6719511497126b82a5025e04fbe1252934b7ccc9 @adrianholovaty adrianholovaty committed Jan 8, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/management.py
@@ -654,7 +654,7 @@ def get_validation_errors(outfile):
try:
from PIL import Image
except ImportError:
- e.add(opts, '"%s" field: To use ImageFields, you need to install the Python Imaging Library. Get it at http://www.pythonware.com/products/pil/ .')
+ e.add(opts, '"%s" field: To use ImageFields, you need to install the Python Imaging Library. Get it at http://www.pythonware.com/products/pil/ .' % f.name)
if f.prepopulate_from is not None and type(f.prepopulate_from) not in (list, tuple):
e.add(opts, '"%s" field: prepopulate_from should be a list or tuple.' % f.name)
if f.choices:

0 comments on commit 6719511

Please sign in to comment.