I updated the state field from python but the view doesn't update. I have to refresh the page to see the update.