diff options
author | Hasan Ramezani <hasan.r67@gmail.com> | 2018-05-14 02:27:28 +0430 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2018-05-13 17:57:28 -0400 |
commit | 31ce1f74334add625a4ed82b531d769828237882 (patch) | |
tree | 1446815e3054b2a0071738ece3628abd4cc8d9e5 /django/contrib/postgres/utils.py | |
parent | 2405833c53950394a296fbf96211fcd04faccefe (diff) | |
download | django-31ce1f74334add625a4ed82b531d769828237882.tar.gz |
Refs #29131 -- Fixed space handling in ArrayField's item_invalid message.
Diffstat (limited to 'django/contrib/postgres/utils.py')
-rw-r--r-- | django/contrib/postgres/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/postgres/utils.py b/django/contrib/postgres/utils.py index 9f92f4059f..f3c022f474 100644 --- a/django/contrib/postgres/utils.py +++ b/django/contrib/postgres/utils.py @@ -17,7 +17,7 @@ def prefix_validation_error(error, prefix, code, params): # ngettext calls require a count parameter and are converted # to an empty string if they are missing it. message=format_lazy( - '{}{}', + '{} {}', SimpleLazyObject(lambda: prefix % params), SimpleLazyObject(lambda: error.message % error_params), ), |