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:
Hasan Ramezani 2020-03-19 19:54:36 +01:00 committed by Mariusz Felisiak
parent 895f28f9cb
commit 10866a10fe
4 changed files with 35 additions and 1 deletions

View file

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