Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #1038 -- Changed ForeignKey to calculate verbose_name by lookin…

…g at its field name rather than the model of the related object. Thanks, Esaj

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 40809bdee4288ceb94bd969065ed7db875ce4b81 1 parent bb85004
Adrian Holovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/meta/
2  django/core/meta/
@@ -692,7 +692,7 @@ def __init__(self, to, to_field=None, **kwargs):
kwargs['verbose_name'] = kwargs.get('verbose_name', '')
to_field = to_field or
- kwargs['verbose_name'] = kwargs.get('verbose_name', to._meta.verbose_name)
+ kwargs['verbose_name'] = kwargs.get('verbose_name', '')
if kwargs.has_key('edit_inline_type'):
import warnings
Please sign in to comment.
Something went wrong with that request. Please try again.