Fixed request creation bugs in views.py