From 68554d16761d1e3bb618686b6d66437c59940b47 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 21 Nov 2015 11:01:07 +0100 Subject: [PATCH] Fixed #13427 -- Made auto-m2m verbose names translatable --- django/db/models/fields/related.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py index fdf072d2dd..afe306ba8f 100644 --- a/django/db/models/fields/related.py +++ b/django/db/models/fields/related.py @@ -1058,8 +1058,8 @@ def create_many_to_many_intermediary_model(field, klass): 'app_label': klass._meta.app_label, 'db_tablespace': klass._meta.db_tablespace, '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}, 'apps': field.model._meta.apps, }) # Construct and return the new class.