diff --git a/main/models.py b/main/models.py index 50451af..f80c497 100644 --- a/main/models.py +++ b/main/models.py @@ -6,7 +6,7 @@ class Page(models.Model): url=models.CharField(max_length=500) title=models.CharField(max_length=100) contents=models.TextField() - last_edited=models.DateField(True) + last_edited=models.DateField(auto_now=True) def __str__(self): return self.title \ No newline at end of file