toastdriven/django-tastypie — pull request #901 by gjcourt (2013-04-11 16:43:11+00:00)
Title: Pass bundle object to build_filters

I was trying to build a custom filter using build_filters and found that I needed access to the bundle.request.user object. After reading through the surrounding code, especially the obj_get_list which immediately calls build_filters, it became more and more apparent that build_filters should also accept the bundle as its first argument.

The main reasoning is that in the filter, you suggest even in the documentation that you can query from the orm or some other source in order to create a custom filter. If one wanted to make a complex query involving contextual information, how could they achieve that behavior without the bundle itself?

The tests appeared to pass.