Ticket #2965: ticket-2965-2.patch
File ticket-2965-2.patch, 823 bytes (added by , 18 years ago) |
---|
-
django/db/models/manipulators.py
old new 303 303 pass 304 304 else: 305 305 raise validators.ValidationError, _("%(object)s with this %(type)s already exists for the given %(field)s.") % \ 306 {'object': capfirst(opts.verbose_name), 'type': field_list[0].verbose_name, 'field': get_text_list([f.verbose_name for f in field_list[1:]], 'and')}306 {'object': capfirst(opts.verbose_name), 'type': field_list[0].verbose_name, 'field': get_text_list([f.verbose_name for f in field_list[1:]], _('and'))} 307 307 308 308 def manipulator_validator_unique_for_date(from_field, date_field, opts, lookup_type, self, field_data, all_data): 309 309 from django.db.models.fields.related import ManyToOneRel