From b46128225d348db97cf54cc0e5cfe91780dbb386 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 18 Feb 2006 20:55:59 +0000 Subject: [PATCH] Removed unnecessary line in d.c.meta.fields, due to [2342] git-svn-id: http://code.djangoproject.com/svn/django/trunk@2343 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/meta/fields.py | 1 - 1 file changed, 1 deletion(-) diff --git a/django/core/meta/fields.py b/django/core/meta/fields.py index 635c9d12603..5cb8b866f50 100644 --- a/django/core/meta/fields.py +++ b/django/core/meta/fields.py @@ -689,7 +689,6 @@ class ForeignKey(Field): to_name = to._meta.object_name.lower() except AttributeError: # to._meta doesn't exist, so it must be RECURSIVE_RELATIONSHIP_CONSTANT assert to == 'self', "ForeignKey(%r) is invalid. First parameter to ForeignKey must be either a model or the string %r" % (to, RECURSIVE_RELATIONSHIP_CONSTANT) - kwargs['verbose_name'] = kwargs.get('verbose_name', '') else: to_field = to_field or to._meta.pk.name kwargs['verbose_name'] = kwargs.get('verbose_name', '')