From dccc5ac0a6ae4cbdf488d297db1b41cd8e3d98f1 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Tue, 27 Apr 2010 14:42:55 +0000 Subject: [PATCH] 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 --- 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 c6fcdac845..54c064a56e 100644 --- a/django/db/models/fields/related.py +++ b/django/db/models/fields/related.py @@ -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,), {