ModioAB / caramel

Caramel is a CA Registry Manager
GNU Affero General Public License v3.0
16 stars 5 forks source link

Added multiple arg support for query wrapper #57

Closed teoti001 closed 3 years ago

teoti001 commented 3 years ago

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.