I'm migrating my site over to Wagtail and using django-wm to handle webmentions.
Whilst running the content import I noticed that all the published dates for existing webmentions were set to today, because published is set to auto_now_add=True, which can't be overridden.
There's already a created_at field set in MentionsBaseModel using auto_now_add=True.
This change sets published to timezone.now maintaining existing functionality but allowing the field to be overriden during an import.
I'm migrating my site over to Wagtail and using django-wm to handle webmentions.
Whilst running the content import I noticed that all the published dates for existing webmentions were set to today, because
published
is set toauto_now_add=True
, which can't be overridden.There's already a
created_at
field set inMentionsBaseModel
usingauto_now_add=True
.This change sets
published
totimezone.now
maintaining existing functionality but allowing the field to be overriden during an import.