diff --git a/django/db/models/fields/files.py b/django/db/models/fields/files.py index cc2c5a7789..8ca8532113 100644 --- a/django/db/models/fields/files.py +++ b/django/db/models/fields/files.py @@ -391,7 +391,7 @@ class ImageField(FileField): checks.Error( 'Cannot use ImageField because Pillow is not installed.', hint=('Get Pillow at https://pypi.python.org/pypi/Pillow ' - 'or run command "pip install pillow".'), + 'or run command "pip install Pillow".'), obj=self, id='fields.E210', ) diff --git a/tests/invalid_models_tests/test_ordinary_fields.py b/tests/invalid_models_tests/test_ordinary_fields.py index cd71f47469..90c2026be9 100644 --- a/tests/invalid_models_tests/test_ordinary_fields.py +++ b/tests/invalid_models_tests/test_ordinary_fields.py @@ -505,7 +505,7 @@ class ImageFieldTests(IsolatedModelsTestCase): Error( 'Cannot use ImageField because Pillow is not installed.', hint=('Get Pillow at https://pypi.python.org/pypi/Pillow ' - 'or run command "pip install pillow".'), + 'or run command "pip install Pillow".'), obj=field, id='fields.E210', ),