Ticket #8778: 00-unique-together-field-labels.diff

File 00-unique-together-field-labels.diff, 883 bytes (added by Petr Marhoun <petr.marhoun@…>, 16 years ago)
  • django/forms/models.py

    === modified file 'django/forms/models.py'
     
    264264                    field_labels = [self.fields[field_name].label for field_name in unique_check]
    265265                    field_labels = get_text_list(field_labels, _('and'))
    266266                    form_errors.append(
    267                         _(u"%(model_name)s with this %(field_label)s already exists.") % \
     267                        _(u"%(model_name)s with this %(field_labels)s already exists.") % \
    268268                        {'model_name': unicode(model_name),
    269                          'field_label': unicode(field_labels)}
     269                         'field_labels': unicode(field_labels)}
    270270                    )
    271271               
    272272                # Remove the data from the cleaned_data dict since it was invalid
Back to Top