order thinks on the front page by time of last edit

instead of time of creation
This commit is contained in:
Christian Lawson-Perfect 2025-05-04 08:22:31 +01:00
parent dcdb3d87be
commit 94643dc2c7
5 changed files with 37 additions and 4 deletions

View file

@ -13,6 +13,7 @@ class Think(models.Model):
slug = models.SlugField()
category = models.CharField(max_length=100, blank=True, null=True)
creation_time = models.DateTimeField(auto_now_add=True)
last_edited = models.DateTimeField(blank=True, null=True)
is_template = models.BooleanField(default=False)