list_csr_printable uses session.query(*entities, **kwargs) while base.query()
only passed on cls ("self") limiting full use of the underlying method.
To support old behavior a check is made if base.query is passed any additional arguments
and if not then just pass cls to session.query, otherwise pass it will pass on the arguments
leaving out cls.
list_csr_printable uses session.query(*entities, **kwargs) while base.query() only passed on cls ("self") limiting full use of the underlying method. To support old behavior a check is made if base.query is passed any additional arguments and if not then just pass cls to session.query, otherwise pass it will pass on the arguments leaving out cls.