Question: when should date
be used versus modified_date
?
#83
Labels
design decision
Needs consideration and design
date
be used versus modified_date
?
#83
date
is very important for determining whether a post is published, i.e. a post with adate
in the future will not be visible.date
field is used to construct the URL using thePOST_PREFIX
settings, e.g./2024/11/28/my-blog-post
modified_date
for anything useful.The
modified_date
uses Django'sauto_now=True
setting in the model to update each time the blog post is updated, but what should we use it for? Some ideas...modified_date
instead? I don't know of any other blogging system that does this. It would break the previous URL and would result in unexpected behaviour. Not a good idea. 👎The text was updated successfully, but these errors were encountered: