1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

Refs #33646 -- Moved tests of QuerySet async interface into async tests.

This commit is contained in:
Bhuvnesh
2022-11-04 00:41:19 +05:30
committed by GitHub
parent 3dc9f3ac69
commit e580b891cb
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)