diff options
author | django-bot <ops@djangoproject.com> | 2022-02-03 20:24:19 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-07 20:37:05 +0100 |
commit | 9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch) | |
tree | f0506b668a013d0063e5fba3dbf4863b466713ba /django/contrib/postgres/utils.py | |
parent | f68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff) | |
download | django-9c19aff7c7561e3a82978a272ecdaad40dda5c00.tar.gz |
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'django/contrib/postgres/utils.py')
-rw-r--r-- | django/contrib/postgres/utils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/django/contrib/postgres/utils.py b/django/contrib/postgres/utils.py index f3c022f474..e4f4d81514 100644 --- a/django/contrib/postgres/utils.py +++ b/django/contrib/postgres/utils.py @@ -17,13 +17,13 @@ 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), ), code=code, params={**error_params, **params}, ) - return ValidationError([ - prefix_validation_error(e, prefix, code, params) for e in error.error_list - ]) + return ValidationError( + [prefix_validation_error(e, prefix, code, params) for e in error.error_list] + ) |