Update views.py

Fixed perm issue