[FIX] moved return out of for loop in views.py