Ticket #1187: PIL-missing-error.diff

File PIL-missing-error.diff, 946 bytes (added by akaihola, 9 years ago)
  • django_src/django/core/management.py

     
    654654                    try:
    655655                        from PIL import Image
    656656                    except ImportError:
    657                         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/ .')
     657                        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)
    658658                if f.prepopulate_from is not None and type(f.prepopulate_from) not in (list, tuple):
    659659                    e.add(opts, '"%s" field: prepopulate_from should be a list or tuple.' % f.name)
    660660                if f.choices:
Back to Top