Django

Code

Changeset 8822

Show
Ignore:
Timestamp:
09/01/08 17:32:40 (3 months ago)
Author:
mtredinnick
Message:

Fixup for Python 2.3.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/forms/models.py

    r8820 r8822  
    256256                    # Insert the error into the error dict, very sneaky 
    257257                    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)} 
    260261                    ]) 
    261262                # unique_together 
     
    264265                    field_labels = get_text_list(field_labels, _('and')) 
    265266                    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)} 
    268270                    ) 
    269271