You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm scraping a listing of events and storing them in an Event model. This model inherits from model_utils.models.TimeStampedModel which gives auto-populated created and updated fields, which I find useful.
Unfortunately, there's no way for me to reuse an existing, populated instance of Event in my pipeline without manually copying each field in the DjangoItem to my model, so created is being updated every time.
There should be a way to do this, perhaps by allowing setting of .instance to my model instance then moving attribute setting into .save().?
The text was updated successfully, but these errors were encountered:
I'm scraping a listing of events and storing them in an
Event
model. This model inherits frommodel_utils.models.TimeStampedModel
which gives auto-populatedcreated
andupdated
fields, which I find useful.Unfortunately, there's no way for me to reuse an existing, populated instance of
Event
in my pipeline without manually copying each field in theDjangoItem
to my model, socreated
is being updated every time.There should be a way to do this, perhaps by allowing setting of
.instance
to my model instance then moving attribute setting into.save()
.?The text was updated successfully, but these errors were encountered: