Open pankus opened 4 months ago
I follow the instruction from the official documentation for form_ajax_refs
form_ajax_refs
form_ajax_refs = { 'active_user': QueryAjaxModelLoader('user', db.session, User, filters=["is_active=True", "id>1000"]) }
yet if I try to pass filters to the QueryAjaxModelLoader the following error message exits: sqlalchemy.exc.ArgumentError: Textual SQL expression 'is_active=True' should be explicitly declared as text('is_active=True')
filters
QueryAjaxModelLoader
sqlalchemy.exc.ArgumentError: Textual SQL expression 'is_active=True' should be explicitly declared as text('is_active=True')
I follow the instruction from the official documentation for
form_ajax_refs
yet if I try to pass
filters
to theQueryAjaxModelLoader
the following error message exits:sqlalchemy.exc.ArgumentError: Textual SQL expression 'is_active=True' should be explicitly declared as text('is_active=True')