From 54591c4c0f90cd221f30136c82039d25eab2eb8c Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 6 Oct 2017 10:36:35 -0700 Subject: added auto date to links --- app/links/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/links') diff --git a/app/links/models.py b/app/links/models.py index 03eff27..4c87f1b 100644 --- a/app/links/models.py +++ b/app/links/models.py @@ -37,7 +37,7 @@ class Link(models.Model): url = models.CharField(max_length=400) description = models.TextField(blank=True, null=True) body_markdown = models.TextField(blank=True, null=True) - pub_date = models.DateTimeField() + pub_date = models.DateTimeField(default=timezone.now) PUB_STATUS = ( (0, 'Private'), (1, 'Public'), -- cgit v1.2.3-70-g09d2