Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
imachuchu opened this issue Nov 23, 2021 · 1 comment
Open

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

imachuchu opened this issue Nov 23, 2021 · 1 comment

Comments

@imachuchu
Copy link

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants