summaryrefslogtreecommitdiff
path: root/tests/db_functions/models.py
diff options
context:
space:
mode:
authorRaphael Michel <mail@raphaelmichel.de>2018-08-07 18:08:39 +0200
committerTim Graham <timograham@gmail.com>2018-08-07 16:47:54 -0400
commit155b31d4ec138664d62665eb2d8a442469045b78 (patch)
tree46cce56f1cccee3ca2bdb0c7555a286d5cdf3162 /tests/db_functions/models.py
parent53e85705221dcc5302393aac40f4fa606e2097d3 (diff)
Fixed #29648 -- Fixed crash when using subqueries inside datetime truncation functions.
Diffstat (limited to 'tests/db_functions/models.py')
-rw-r--r--tests/db_functions/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/db_functions/models.py b/tests/db_functions/models.py
index c31de39b85..083655e80f 100644
--- a/tests/db_functions/models.py
+++ b/tests/db_functions/models.py
@@ -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