implemented SpellRestView and ShopRestView in views.py