Quick fix in api views.py