mirror of
				https://github.com/django/django.git
				synced 2025-10-29 08:36:09 +00:00 
			
		
		
		
	Fixed a subtle bug (really, an inconsistency) in ForeignKey that [8132] exposed by causing the model_forms test to fail.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -624,7 +624,7 @@ class ForeignKey(RelatedField, Field): | ||||
|             assert isinstance(to, basestring), "%s(%r) is invalid. First parameter to ForeignKey must be either a model, a model name, or the string %r" % (self.__class__.__name__, to, RECURSIVE_RELATIONSHIP_CONSTANT) | ||||
|         else: | ||||
|             to_field = to_field or to._meta.pk.name | ||||
|         kwargs['verbose_name'] = kwargs.get('verbose_name', '') | ||||
|         kwargs['verbose_name'] = kwargs.get('verbose_name', None) | ||||
|  | ||||
|         if 'edit_inline_type' in kwargs: | ||||
|             import warnings | ||||
|   | ||||
		Reference in New Issue
	
	Block a user