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:
@@ -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