mirror of
https://github.com/django/django.git
synced 2025-11-26 13:42:08 +00:00
Fixed field default in dates tests.
This commit is contained in:
parent
c7b97ac3a7
commit
7d8df4ad03
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ from django.utils import timezone
|
||||||
class Article(models.Model):
|
class Article(models.Model):
|
||||||
title = models.CharField(max_length=100)
|
title = models.CharField(max_length=100)
|
||||||
pub_date = models.DateField()
|
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")
|
categories = models.ManyToManyField("Category", related_name="articles")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue