Added simple filter for model filtering when outputting objects through api