Fixed bad reference to request.user in generic views