Fixed field default in dates tests.

This commit is contained in:
Mariusz Felisiak 2020-01-18 20:07:25 +01:00 committed by GitHub
parent c7b97ac3a7
commit 7d8df4ad03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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")