mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Fixed #31377 -- Disabled grouping by aliases on QuerySet.values()/values_list() when they collide with field names.
Regression in fb3f034f1c
.
Thanks Holovashchenko Vadym for the report.
This commit is contained in:
parent
895f28f9cb
commit
10866a10fe
4 changed files with 35 additions and 1 deletions
|
@ -5,6 +5,7 @@ class Author(models.Model):
|
|||
name = models.CharField(max_length=100)
|
||||
age = models.IntegerField()
|
||||
friends = models.ManyToManyField('self', blank=True)
|
||||
rating = models.FloatField(null=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue