Fixed #24649 -- Allowed using Avg aggregate on non-numeric field types.

This commit is contained in:
Tim Graham 2015-04-23 20:13:24 -04:00
parent 26996e2d55
commit 2d76b61dc2
7 changed files with 46 additions and 15 deletions

View file

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