mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[1.8.x] Fixed #12768 -- Fixed QuerySet.raw() regression on FK with custom db_column.
Backport of e063ac2fae from master
			
			
This commit is contained in:
		| @@ -23,6 +23,10 @@ class Book(models.Model): | ||||
|     opening_line = models.TextField() | ||||
|  | ||||
|  | ||||
| class BookFkAsPk(models.Model): | ||||
|     book = models.ForeignKey(Book, primary_key=True, db_column="not_the_default") | ||||
|  | ||||
|  | ||||
| class Coffee(models.Model): | ||||
|     brand = models.CharField(max_length=255, db_column="name") | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user