Re: Fluent interface on custom methods of custom Queryset class

2017-07-19 Thread Felippe Raposo
t=True) objects = models.Manager.from_queryset(ProcedureQuerySet)() Warmly, Felippe Raposo 2017-07-19 11:50 GMT-03:00 Fabio C. Barrionuevo da Luz <bna...@gmail.com>: > What is the right way to make Fluent interface on custom methods of custom > Queryset class? > > In

Fluent interface on custom methods of custom Queryset class

2017-07-19 Thread Fabio C. Barrionuevo da Luz
What is the right way to make Fluent interface on custom methods of custom Queryset class? In other words, how to make "by_validity" work without lost previous filters? Procedure.objects.filter(is_active=False).by_validity() I've tried using q = self or q = self.query befo