MCPcopy
hub / github.com/django/django / filter

Method filter

tests/custom_managers/models.py:36–39  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

34
35class CustomQuerySet(models.QuerySet):
36 def filter(self, *args, **kwargs):
37 queryset = super().filter(fun=True)
38 queryset._filter_CustomQuerySet = True
39 return queryset
40
41 def public_method(self, *args, **kwargs):
42 return self.all()

Calls

no outgoing calls