actually filter in middleware and json view