summaryrefslogtreecommitdiff
path: root/django/contrib/postgres/validators.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-04 08:08:27 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-07 20:37:05 +0100
commit7119f40c9881666b6f9b5cf7df09ee1d21cc8344 (patch)
treefa50869f5614295f462d9bf77fec59365c621609 /django/contrib/postgres/validators.py
parent9c19aff7c7561e3a82978a272ecdaad40dda5c00 (diff)
downloaddjango-7119f40c9881666b6f9b5cf7df09ee1d21cc8344.tar.gz
Refs #33476 -- Refactored code to strictly match 88 characters line length.
Diffstat (limited to 'django/contrib/postgres/validators.py')
-rw-r--r--django/contrib/postgres/validators.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/django/contrib/postgres/validators.py b/django/contrib/postgres/validators.py
index df2bd88eb9..47bb7bc7b6 100644
--- a/django/contrib/postgres/validators.py
+++ b/django/contrib/postgres/validators.py
@@ -12,16 +12,20 @@ from django.utils.translation import ngettext_lazy
class ArrayMaxLengthValidator(MaxLengthValidator):
message = ngettext_lazy(
- "List contains %(show_value)d item, it should contain no more than %(limit_value)d.",
- "List contains %(show_value)d items, it should contain no more than %(limit_value)d.",
+ "List contains %(show_value)d item, it should contain no more than "
+ "%(limit_value)d.",
+ "List contains %(show_value)d items, it should contain no more than "
+ "%(limit_value)d.",
"limit_value",
)
class ArrayMinLengthValidator(MinLengthValidator):
message = ngettext_lazy(
- "List contains %(show_value)d item, it should contain no fewer than %(limit_value)d.",
- "List contains %(show_value)d items, it should contain no fewer than %(limit_value)d.",
+ "List contains %(show_value)d item, it should contain no fewer than "
+ "%(limit_value)d.",
+ "List contains %(show_value)d items, it should contain no fewer than "
+ "%(limit_value)d.",
"limit_value",
)