Changeset 8822
- Timestamp:
- 09/01/08 17:32:40 (3 months ago)
- Files:
-
- django/trunk/django/forms/models.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/forms/models.py
r8820 r8822 256 256 # Insert the error into the error dict, very sneaky 257 257 self._errors[field_name] = ErrorList([ 258 _("%(model_name)s with this %(field_label)s already exists.") % \ 259 {'model_name': model_name, 'field_label': field_label} 258 _(u"%(model_name)s with this %(field_label)s already exists.") % \ 259 {'model_name': unicode(model_name), 260 'field_label': unicode(field_label)} 260 261 ]) 261 262 # unique_together … … 264 265 field_labels = get_text_list(field_labels, _('and')) 265 266 form_errors.append( 266 _("%(model_name)s with this %(field_label)s already exists.") % \ 267 {'model_name': model_name, 'field_label': field_labels} 267 _(u"%(model_name)s with this %(field_label)s already exists.") % \ 268 {'model_name': unicode(model_name), 269 'field_label': unicode(field_labels)} 268 270 ) 269 271
