I've simplified the implementation (keeping tastypie compatibility) and added tests. This is still not ideal (I really don't like the idea of doing offset-based pagination the way it was done in tastypie) but should work.