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
This commit is contained in:
parent
40809bdee4
commit
b46128225d
|
@ -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', '')
|
||||
|
|
Loading…
Reference in New Issue