Update views.py

fork for handling auto committing session