Kaydet (Commit) 32883620 authored tarafından Georg Bauer's avatar Georg Bauer

added a missed translation to the admin (the error message when you try to add a duplicate record)


git-svn-id: http://code.djangoproject.com/svn/django/trunk@1644 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 9fe3ac13
......@@ -1943,8 +1943,8 @@ def manipulator_validator_unique_together(field_name_list, opts, self, field_dat
if hasattr(self, 'original_object') and getattr(self.original_object, opts.pk.attname) == getattr(old_obj, opts.pk.attname):
pass
else:
raise validators.ValidationError, "%s with this %s already exists for the given %s." % \
(capfirst(opts.verbose_name), field_list[0].verbose_name, get_text_list(field_name_list[1:], 'and'))
raise validators.ValidationError, _("%(object)s with this %(type)s already exists for the given %(field)s.") % {
'object': capfirst(opts.verbose_name), 'type': field_list[0].verbose_name, 'field': get_text_list(field_name_list[1:], 'and')}
def manipulator_validator_unique_for_date(from_field, date_field, opts, lookup_type, self, field_data, all_data):
date_str = all_data.get(date_field.get_manipulator_field_names('')[0], None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment