Create views_generic.py

This uses generic views for less code