(self)
return (
            self.active().values("plan").order_by().annotate(count=models.Count("plan"))
        )
Return active Subscriptions with plan counts annotated.
Return active Subscriptions with plan counts annotated.
Return active Subscriptions with plan counts annotated .
def active_plan_summary(self):
        """Return active Subscriptions with plan counts annotated."""
        return (
            self.active().values("plan").order_by().annotate(count=models.Count("plan"))
        )
def active_plan_summary ( self ) : return ( self . active ( ) . values ( "plan" ) . order_by ( ) . annotate ( count = models . Count ( "plan" ) ) )