mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Fixed #31086 -- Improved error message for admin model inlines with more than one foreign key to the same parent.
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							ff00a05347
						
					
				
				
					commit
					f4647179cc
				
			| @@ -636,7 +636,9 @@ class SystemChecksTestCase(SimpleTestCase): | ||||
|         errors = MyAdmin(Album, AdminSite()).check() | ||||
|         expected = [ | ||||
|             checks.Error( | ||||
|                 "'admin_checks.TwoAlbumFKAndAnE' has more than one ForeignKey to 'admin_checks.Album'.", | ||||
|                 "'admin_checks.TwoAlbumFKAndAnE' has more than one ForeignKey " | ||||
|                 "to 'admin_checks.Album'. You must specify a 'fk_name' " | ||||
|                 "attribute.", | ||||
|                 obj=TwoAlbumFKAndAnEInline, | ||||
|                 id='admin.E202', | ||||
|             ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user