mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #34015 -- Allowed filtering by transforms on relation fields.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
"""
|
||||
Various complex queries that have been problematic in the past.
|
||||
"""
|
||||
import datetime
|
||||
|
||||
from django.db import models
|
||||
from django.db.models.functions import Now
|
||||
|
||||
@@ -64,7 +66,7 @@ class Annotation(models.Model):
|
||||
|
||||
|
||||
class DateTimePK(models.Model):
|
||||
date = models.DateTimeField(primary_key=True, auto_now_add=True)
|
||||
date = models.DateTimeField(primary_key=True, default=datetime.datetime.now)
|
||||
|
||||
|
||||
class ExtraInfo(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user