summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/models.py
diff options
context:
space:
mode:
authorAdam Chainz <adam@adamj.eu>2015-06-01 18:00:34 +0100
committerTim Graham <timograham@gmail.com>2015-06-15 14:03:17 -0400
commitd34d39ade76e6b67299d8d88a7e5a2278a793dc3 (patch)
tree60b65b404ce1e901eecb65fc7de3f99817d080ad /tests/postgres_tests/models.py
parent3872a33132a4bb6aa22b237927597bbfdf6f21d7 (diff)
Fixed #24894 -- Added contrib.postgres.functions.TransactionNow
Diffstat (limited to 'tests/postgres_tests/models.py')
-rw-r--r--tests/postgres_tests/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/postgres_tests/models.py b/tests/postgres_tests/models.py
index bef77b7b21..4233092c79 100644
--- a/tests/postgres_tests/models.py
+++ b/tests/postgres_tests/models.py
@@ -109,3 +109,7 @@ class StatTestModel(models.Model):
int1 = models.IntegerField()
int2 = models.IntegerField()
related_field = models.ForeignKey(AggregateTestModel, null=True)
+
+
+class NowTestModel(models.Model):
+ when = models.DateTimeField(null=True, default=None)