mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.7.x] Fixed #23956 -- Fixed migration creation for multiple table inheritance
Backport of 44927ba817 from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							491bf20d19
						
					
				
				
					commit
					f446acf8bb
				
			| @@ -471,7 +471,7 @@ class MigrationAutodetector(object): | ||||
|                     if field.rel.to: | ||||
|                         if field.primary_key: | ||||
|                             primary_key_rel = field.rel.to | ||||
|                         else: | ||||
|                         elif not field.rel.parent_link: | ||||
|                             related_fields[field.name] = field | ||||
|                     # through will be none on M2Ms on swapped-out models; | ||||
|                     # we can treat lack of through as auto_created=True, though. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user