Narrows the search by ensuring certain attributes are not included.
(self, *args, **kwargs)
| 331 | return self.filter_and(*args, **kwargs) |
| 332 | |
| 333 | def exclude(self, *args, **kwargs): |
| 334 | """Narrows the search by ensuring certain attributes are not included.""" |
| 335 | clone = self._clone() |
| 336 | clone.query.add_filter(~SQ(*args, **kwargs)) |
| 337 | return clone |
| 338 | |
| 339 | def filter_and(self, *args, **kwargs): |
| 340 | """Narrows the search by looking for (and including) certain attributes.""" |