mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #29648 -- Fixed crash when using subqueries inside datetime truncation functions.
This commit is contained in:
parent
53e8570522
commit
155b31d4ec
3 changed files with 35 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue