Fixed #29648 -- Fixed crash when using subqueries inside datetime truncation functions.

This commit is contained in:
Raphael Michel 2018-08-07 18:08:39 +02:00 committed by Tim Graham
parent 53e8570522
commit 155b31d4ec
3 changed files with 35 additions and 4 deletions

View file

@ -32,6 +32,7 @@ class Fan(models.Model):
name = models.CharField(max_length=50)
age = models.PositiveSmallIntegerField(default=30)
author = models.ForeignKey(Author, models.CASCADE, related_name='fans')
fan_since = models.DateTimeField(null=True, blank=True)
def __str__(self):
return self.name