Restore created_at
This commit is contained in:
parent
bc1c5ff08a
commit
edd3b8032b
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ import random
|
|||
class Link(models.Model):
|
||||
id = models.CharField(primary_key=True, max_length=12)
|
||||
url = models.URLField(max_length=2048)
|
||||
created_at = models.DateTimeField(auto_now_add=False)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
clicks = models.IntegerField(default=0)
|
||||
ip = models.GenericIPAddressField(null=True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue