Skip to content
Browse files

Removed unnecessary line in d.c.meta.fields, due to [2342]

git-svn-id: 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/
1 django/core/meta/
@@ -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', '')
to_field = to_field or
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.