Do filtering in the model, not the view.