Q:

Combine two model managers for a queryset

Is there a way to apply a custom model manager to a QuerySet produced by the default model manager?
I need to filter a QuerySet using the default model manager, since I have a M2M through model, and it is easiest to do the filtering there rather than increasing the complexity of my custom manager by an order of magnitude: this filter looks as follows:
talent_set = UserProfile.objects.filter(positions=Position.objects.get(position=filter))

I then need to apply my custom model manager to this filtered query, like so:
final_talent_set = UserProfile[filtered].custom_manager.do_something()

Is there a way to do this, or a different approach I should take? Perhaps a way to append a column (from the custom manager) onto the end of the default manager? Thank you.

A:

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

