really set the modification date

This commit is contained in:
Johannes Raggam 2012-10-31 22:15:20 +01:00
parent 01ac7058b5
commit dae55074cd

View File

@ -220,7 +220,7 @@ def notify_content_object(obj, event):
# set the modified date and reindex the item accordingly
# so that 304s work correctly. This means that adding a comment
# effectively counts as modifying the content type.
content_obj.setModificationDate()
content_obj.setModificationDate(datetime.now())
content_obj.reindexObject(idxs=('total_comments',
'last_comment_date',
'commentators',