mirror of
https://github.com/django/django.git
synced 2025-10-09 18:12:39 +00:00
Fixed #24649 -- Allowed using Avg aggregate on non-numeric field types.
This commit is contained in:
parent
26996e2d55
commit
2d76b61dc2
7 changed files with 46 additions and 15 deletions
|
@ -17,6 +17,7 @@ class Author(models.Model):
|
|||
class Publisher(models.Model):
|
||||
name = models.CharField(max_length=255)
|
||||
num_awards = models.IntegerField()
|
||||
duration = models.DurationField(blank=True, null=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue