def to_django_query(query, model_cls=None):
 return Q.from_modm_query(query, model_cls=model_cls).to_django_query()

def to_django_query ( query , model_cls = None ) : return Q . from_modm_query ( query , model_cls = model_cls ) . to_django_query ( )
translate a modular-odm q or querygroup to a django query .