=== modified file 'django/forms/models.py'
|
|
|
263 | 263 | field_labels = [self.fields[field_name].label for field_name in unique_check] |
264 | 264 | field_labels = get_text_list(field_labels, _('and')) |
265 | 265 | form_errors.append( |
266 | | _("%(model_name)s with this %(field_label)s already exists.") % \ |
267 | | {'model_name': model_name, 'field_label': field_labels} |
| 266 | _("%(model_name)s with this %(field_labels)s already exists.") % \ |
| 267 | {'model_name': model_name, 'field_labels': field_labels} |
268 | 268 | ) |
269 | 269 | |
270 | 270 | # Remove the data from the cleaned_data dict since it was invalid |