Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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: http://code.djangoproject.com/svn/django/trunk@2342 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 40809bdee4288ceb94bd969065ed7db875ce4b81 1 parent bb85004
Adrian Holovaty authored February 18, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/core/meta/fields.py
2  django/core/meta/fields.py
@@ -692,7 +692,7 @@ def __init__(self, to, to_field=None, **kwargs):
692 692
             kwargs['verbose_name'] = kwargs.get('verbose_name', '')
693 693
         else:
694 694
             to_field = to_field or to._meta.pk.name
695  
-            kwargs['verbose_name'] = kwargs.get('verbose_name', to._meta.verbose_name)
  695
+        kwargs['verbose_name'] = kwargs.get('verbose_name', '')
696 696
 
697 697
         if kwargs.has_key('edit_inline_type'):
698 698
             import warnings

0 notes on commit 40809bd

Please sign in to comment.
Something went wrong with that request. Please try again.