Update baseviews.py