diff options
author | luxagraf <sng@luxagraf.net> | 2017-10-06 10:36:35 -0700 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2017-10-06 10:36:35 -0700 |
commit | 54591c4c0f90cd221f30136c82039d25eab2eb8c (patch) | |
tree | 389c9b566098c56bdac11d86893bc68adcbedc32 /app/links/models.py | |
parent | be3073fd769d79b62e2dc4a3b099213ef985e307 (diff) |
added auto date to links
Diffstat (limited to 'app/links/models.py')
-rw-r--r-- | app/links/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'), |