Filtering reverse lookups via a ManyToManyField through table

Hey @massover thanks for the response.

Very cool – base_manager is a new angle of attack I hadn’t seen, and it gives me some new options to dig into or possibly the default_manager Meta overrides.

I found this thread which really gets sooooo close to my situation – except their deleted flag (my version of active) isn’t on their through-model, so their manager overrides aren’t where I need them.

I need to deactivate the relationship (the through table), not the instances on either side of it. I tried changing the base_manager and default_manager to operate on the through table, but no luck yet.

At this point I’d settle just adding a new method, e.g.

bossypants.staff.active()

but I imagine if I could figure that out I’d be able to adjust the behavior of .all()

I’ll keep poking, and I appreciate your response!