def METHOD_NAME(signal_departments: SignalDepartments) -> None:
    if not isinstance(signal_departments, SignalDepartments):
        return
    extra = ', '.join(signal_departments.departments.values_list('code', flat=True))
    signal_departments.history_log.create(
        action=Log.ACTION_UPDATE,
        extra=extra,
        description=None,
        created_by=signal_departments.created_by,
        created_at=signal_departments.created_at,
        _signal=signal_departments._signal,
    )