def exclude(self, **filters):
exclude = {'<STR_LIT>' % key: value for key, value in filters.items()}<EOL>return self.filter(**exclude)<EOL>
Applies query filters for excluding matching records from result set.

Args:
    **filters: Query filters as keyword arguments.

Returns:
    Self. Queryset object.

Examples:
    >>> Person.objects.exclude(age=None)
    >>> Person.objects.filter(name__startswith='jo').exclude(age__lte=16)