From 7d8df4ad032c6241776c2b3ec6c76af9dd84fda3 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Sat, 18 Jan 2020 20:07:25 +0100 Subject: [PATCH] Fixed field default in dates tests. --- tests/dates/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dates/models.py b/tests/dates/models.py index 74f9db28ad..7f710ce1ea 100644 --- a/tests/dates/models.py +++ b/tests/dates/models.py @@ -5,7 +5,7 @@ from django.utils import timezone class Article(models.Model): title = models.CharField(max_length=100) pub_date = models.DateField() - pub_datetime = models.DateTimeField(default=timezone.now()) + pub_datetime = models.DateTimeField(default=timezone.now) categories = models.ManyToManyField("Category", related_name="articles")