=== modified file 'django/forms/models.py'
|
|
|
264 | 264 | field_labels = [self.fields[field_name].label for field_name in unique_check] |
265 | 265 | field_labels = get_text_list(field_labels, _('and')) |
266 | 266 | 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.") % \ |
268 | 268 | {'model_name': unicode(model_name), |
269 | | 'field_label': unicode(field_labels)} |
| 269 | 'field_labels': unicode(field_labels)} |
270 | 270 | ) |
271 | 271 | |
272 | 272 | # Remove the data from the cleaned_data dict since it was invalid |