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.
Hmm, why not just use the same
filteringet_query_set()?I mean: