Ticket #2965: ticket-2965-2.patch

File ticket-2965-2.patch, 823 bytes (added by ramiro, 9 years ago)

Previous patch file version contained an unrelated hunk

  • django/db/models/manipulators.py

    old new  
    303303        pass
    304304    else:
    305305        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'))}
    307307
    308308def manipulator_validator_unique_for_date(from_field, date_field, opts, lookup_type, self, field_data, all_data):
    309309    from django.db.models.fields.related import ManyToOneRel
Back to Top