From 6719511497126b82a5025e04fbe1252934b7ccc9 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sun, 8 Jan 2006 06:31:24 +0000 Subject: [PATCH] Fixed #1187 -- Added field name to error message for missing PIL. Thanks, akaihola git-svn-id: http://code.djangoproject.com/svn/django/trunk@1859 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/management.py b/django/core/management.py index 79b2c866f2..d0d4495e5d 100644 --- a/django/core/management.py +++ b/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: