Skip to content

Commit

Permalink
Refs #13427 -- Removed translation from verbose_name and verbose_name…
Browse files Browse the repository at this point in the history
…_plural on autogenerated m2m models.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13031 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Apr 27, 2010
1 parent 2f9eef1 commit dccc5ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/db/models/fields/related.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -970,8 +970,8 @@ def set_managed(field, model, cls):
'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,), {
Expand Down

0 comments on commit dccc5ac

Please sign in to comment.