summaryrefslogtreecommitdiff
path: root/django/db/models/fields/__init__.py
diff options
context:
space:
mode:
authorFederico Frenguelli <synasius@gmail.com>2014-07-26 12:06:19 +0200
committerClaude Paroz <claude@2xlibre.net>2014-07-26 13:55:20 +0200
commit6eed751162f10a3e93f4fa7c1eed2c43b70bb0ca (patch)
tree39521c60e47c40109f3211bd899d1f3b264dc17f /django/db/models/fields/__init__.py
parente1c85167a3de7adf51105d5f0751b39fa0d49ba7 (diff)
Fixed #22887 -- Added comment for translators on unique_for_date error message
Diffstat (limited to 'django/db/models/fields/__init__.py')
-rw-r--r--django/db/models/fields/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py
index 7d4f8e152e..56c25f0045 100644
--- a/django/db/models/fields/__init__.py
+++ b/django/db/models/fields/__init__.py
@@ -106,6 +106,8 @@ class Field(RegisterLookupMixin):
'blank': _('This field cannot be blank.'),
'unique': _('%(model_name)s with this %(field_label)s '
'already exists.'),
+ # Translators: The 'lookup_type' is one of 'date', 'year' or 'month'.
+ # Eg: "Title must be unique for pub_date year"
'unique_for_date': _("%(field_label)s must be unique for "
"%(date_field_label)s %(lookup_type)s."),
}