mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #12429 -- Ensure that raw queries call resolve_columns if the backend defines it. This ensures (as much as possible) that the model values returned by a raw query match that in normal queries. Thanks to Ian Kelly for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12904 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -17,6 +17,8 @@ class Author(models.Model):
|
||||
class Book(models.Model):
|
||||
title = models.CharField(max_length=255)
|
||||
author = models.ForeignKey(Author)
|
||||
paperback = models.BooleanField()
|
||||
opening_line = models.TextField()
|
||||
|
||||
class Coffee(models.Model):
|
||||
brand = models.CharField(max_length=255, db_column="name")
|
||||
|
||||
Reference in New Issue
Block a user