tomchristie/django-rest-framework — pull request #1199 by yamila-moreno (2013-10-24 13:54:32+00:00)
Title: Added get_filter_backends method

Hi!

I have this PR to add a small feature I needed before. By default, the ViewSet applies all the filters in filter_backends.

For some resources, you may need to choose which filters you want to apply; and you may have different sets of filters (you want to apply one of them and avoid applying other), but you don't really need two resources.

Besides, this check shouldn't be done inside the filter, because establishes interdependences between filters.

I haven't added tests as other similar methods don't have any, such as get_serializer_class or get_permissios_classes. For me it has sense because they are extremely simple methods. Nevertheless, if you prefer any tests on this, I could add some.

Please, consider adding this feature in the main django-rest-framework branch.