nephila / djangocms-blog

django CMS blog application - Support for multilingual posts, placeholders, social network meta tags and configurable apphooks
https://djangocms-blog.readthedocs.io
BSD 3-Clause "New" or "Revised" License
392 stars 192 forks source link

Post's date modified isn't getting updated on content update #693

Open imachuchu opened 2 years ago

imachuchu commented 2 years ago

Description

When a post is edited and saved the post's date_modified field isn't updated. This is useful for incremental search indexing to catch posts that have been updated since the last time it was run.

Steps to reproduce

  1. Create and publish a post
  2. Update the post

Versions

Tested on djangocms-blog==1.2.3

Expected behaviour

Expect the post's date_modified field to be updated to the new time it was saved.

Actual behaviour

The date_modified field is the same as before it was saved.

Additional information

I think it's a simple matter of setting the date_modified field any time the Post is saved. I don't believe there's any other mechanisms currently in place to handle updating it.

protoroto commented 11 months ago

@imachuchu Do you still have this problem? I've just tried via shell, and date_modified is correctly updated