apply Django generic views