German translation for min_value
field error message references max_value
. · Issue #2645 · encode/django-rest-framework (original) (raw)
The German translation for the min_value
error message in IntegerField
,FloatField
and DecimalField
, which is:
'min_value': _('Ensure this value is greater than or equal to {min_value}.'),
references max_value
, which leads to errors when .format()
-ing this string.
#: fields.py:659 fields.py:693 fields.py:726
msgid "Ensure this value is greater than or equal to {min_value}."
msgstr "Stelle sicher, dass dieser Wert größer oder gleich {max_value} ist."
The relevant part of the error is:
File "###/.virtualenvs/bk/lib/python3.4/site-packages/rest_framework/fields.py", line 755, in init message = self.error_messages['min_value'].format(min_value=self.min_value) File "###/.virtualenvs/bk/lib/python3.4/site-packages/django/utils/functional.py", line 135, in wrapper return self.__dispatch[t][funcname](res, *args, **kw) KeyError: 'max_value'