Backbone with Tastypie – pagination, server-side filtering and sorting

Filtering

Tastypie comes with a very good filtering mechanism which allow API users to do the same type of queries what you would write in Django. Why not leverage that and make the server-side do the heavy lifting and the client side only fetches what it actually needs? That’s exactly what filtrate method does in the extended backbone library. With resetFilter the given parameter can be removed from the filters.