views.py: some fixes