correct the views.py --change class to def