Fixed #13427 -- Made auto-m2m verbose names translatable

This commit is contained in:
Claude Paroz 2015-11-21 11:01:07 +01:00
parent 54e2e688e1
commit 68554d1676
1 changed files with 2 additions and 2 deletions

View File

@ -1058,8 +1058,8 @@ def create_many_to_many_intermediary_model(field, klass):
'app_label': klass._meta.app_label, 'app_label': klass._meta.app_label,
'db_tablespace': klass._meta.db_tablespace, 'db_tablespace': klass._meta.db_tablespace,
'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},
'apps': field.model._meta.apps, 'apps': field.model._meta.apps,
}) })
# Construct and return the new class. # Construct and return the new class.