Reverted reversions to views.py