got rid of stupid assumption in views.py