5👍
✅
Hmm, why not just use the same filter
in get_query_set()
?
I mean:
class MyManager(models.Manager):
def get_query_set(self):
return super(MyManager, self).get_query_set().filter(
positions=Position.objects.get(position=filter)
)
def do_something(self):
q = self.get_query_set()
# do something
Source:stackexchange.com