Skip to content
Browse files

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
  • Loading branch information...
1 parent 40809bd commit b46128225d348db97cf54cc0e5cfe91780dbb386 @adrianholovaty adrianholovaty committed
Showing with 0 additions and 1 deletion.
  1. +0 −1 django/core/meta/fields.py
View
1 django/core/meta/fields.py
@@ -689,7 +689,6 @@ def __init__(self, to, to_field=None, **kwargs):
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', '')

0 comments on commit b461282

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