Update view.py

Solve bug: "AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle'"