added function decrator need_enroll in views.py, fixed indents in models.py and views.py