Tip: When getting an error like this, searching for the origin in the code often helps. For example, searching for “was not tracked” points to the
register_event_time_change function, whose docstring actually mentions what @kolodzie wrote above:
"""Register a time-related change for an event
This is an internal helper function used in the model to record
changes of the start time or end time. The changes are exposed
through the `track_time_changes` contextmanager function.
track_time_changes is documented like this:
def track_time_changes(auto_extend=False, user=None):
"""Track time changes of event objects.
This provides a list of changes while the context manager was
active and also triggers `times_changed` signals.
If the code running inside the ``with`` block of this context
manager raises an exception, no signals will be triggered.
:param auto_extend: Whether entry parents will get their boundaries
automatically extended or not. Passing ``'start'`` will
extend only start datetime, ``'end'`` to extend only
:param user: The `User` that will trigger time changes.