1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[4.1.x] Refs #33646 -- Moved tests of QuerySet async interface into async tests.

Backport of e580b891cb from main
This commit is contained in:
Bhuvnesh
2022-11-04 00:41:19 +05:30
committed by Mariusz Felisiak
parent eca526eab0
commit 8740d2f452
4 changed files with 7 additions and 12 deletions

View File

@@ -1,5 +1,11 @@
from django.db import models
from django.utils import timezone
class RelatedModel(models.Model):
simple = models.ForeignKey("SimpleModel", models.CASCADE, null=True)
class SimpleModel(models.Model):
field = models.IntegerField()
created = models.DateTimeField(default=timezone.now)