mirror of https://github.com/django/django.git
Fixed #13427 -- Made auto-m2m verbose names translatable
This commit is contained in:
parent
54e2e688e1
commit
68554d1676
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue