1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #12768 -- Fixed QuerySet.raw() regression on FK with custom db_column.

This commit is contained in:
Matt Johnson
2015-07-22 11:54:42 -07:00
committed by Tim Graham
parent 71df9b7de4
commit e063ac2fae
4 changed files with 23 additions and 4 deletions

View File

@@ -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")