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:
parent
2f9eef1227
commit
dccc5ac0a6
|
@ -970,8 +970,8 @@ def create_many_to_many_intermediary_model(field, klass):
|
||||||
'auto_created': klass,
|
'auto_created': klass,
|
||||||
'app_label': klass._meta.app_label,
|
'app_label': klass._meta.app_label,
|
||||||
'unique_together': (from_, to),
|
'unique_together': (from_, to),
|
||||||
'verbose_name': _('%(from)s-%(to)s relationship') % {'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},
|
'verbose_name_plural': '%(from)s-%(to)s relationships' % {'from': from_, 'to': to},
|
||||||
})
|
})
|
||||||
# Construct and return the new class.
|
# Construct and return the new class.
|
||||||
return type(name, (models.Model,), {
|
return type(name, (models.Model,), {
|
||||||
|
|
Loading…
Reference in New Issue