Skip to content

Commit

Permalink
Fixed incorrect default date in date_submitted
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshk committed Aug 9, 2011
1 parent 8447a4f commit 44fc470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shortener/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Link(models.Model):
"""
url = models.URLField(verify_exists=True, unique=True)
date_submitted = models.DateTimeField(default=datetime.datetime.now())
date_submitted = models.DateTimeField(auto_now_add=True)
usage_count = models.IntegerField(default=0)

def to_base62(self):
Expand Down

0 comments on commit 44fc470

Please sign in to comment.