fixed errors in models.py #110
fixed errors in views.py #110