From 2d61a4a98a24b67708e7c5ccda471592e4ee1d06 Mon Sep 17 00:00:00 2001 From: Zergling_man Date: Sat, 9 Oct 2021 23:33:21 +1100 Subject: [PATCH] That's odd --- main/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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