Refs #13427 -- Removed translation from verbose_name and verbose_name_plural on autogenerated m2m models.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13031 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2010-04-27 14:42:55 +00:00
parent 2f9eef1227
commit dccc5ac0a6
1 changed files with 2 additions and 2 deletions

View File

@ -970,8 +970,8 @@ def create_many_to_many_intermediary_model(field, klass):
'auto_created': klass,
'app_label': klass._meta.app_label,
'unique_together': (from_, to),
'verbose_name': _('%(from)s-%(to)s relationship') % {'from': from_, 'to': to},
'verbose_name_plural': _('%(from)s-%(to)s relationships') % {'from': from_, 'to': to},
'verbose_name': '%(from)s-%(to)s relationship' % {'from': from_, 'to': to},
'verbose_name_plural': '%(from)s-%(to)s relationships' % {'from': from_, 'to': to},
})
# Construct and return the new class.
return type(name, (models.Model,), {