Skip to content

Add option to set the default date when bulk creating or updating #686

Closed
@sbor23

Description

@sbor23

It would be nice if the date of history entries could be set when creating or updating multiple instances.
Similar to what exists with the change_reason and default_user.

Describe the solution you'd like
The HistoryManager.bulk_history_create() method should accept an keyword argument default_date which is considered for setting the date on new history entries with higher precedence than _history_date on the original instance.
The same should exposed on the utility functions bulk_create_with_history() and bulk_update_with_history().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions