alex/django-filter — pull request #184 by davidwtbuxton (2014-11-18 10:20:12+00:00)
Title: Multiple choice filtering

Hi,

This change fixes the behaviour of a MultipleChoiceField when the submitted choices are the same as the available choices.

Currently the code short circuits and returns the queryset as-is, without applying the choices. This is a bug because:

- The database field may allow NULL values, in which case the queryset returns all rows including rows where the value was NULL.

- The filter field may have been configured with fewer choices than are available on the underlying database field.

In both cases the the filter isn't applied, and the queryset may included unwanted records. Test including demonstrating how the filters aren't applied.