def filter(self, *args, **kw):
qs = self.get_query_set().filter(*args)<EOL>for lookup, value in kw.items():<EOL><INDENT>lookups = self._filter_by_lookup(qs, lookup, value)<EOL>qs = qs.filter(**lookups)<EOL><DEDENT>return qs<EOL>
A wrapper around standard filter() method. Allows to construct queries
involving both normal fields and EAV attributes without thinking about
implementation details. Usage::

    ConcreteEntity.objects.filter(rubric=1, price=2, colour='green')

...where `rubric` is a ForeignKey field, and `colour` is the name of an
EAV attribute represented by Schema and Attr models.