3 ms·
Good suggestion. Also, the quotes aren't necessary on the keys of the keyword arguments: collection = Transaction.search( order_id__starts_with='a2d',
by postfuturist 16y ago
Good suggestion. Also, the quotes aren't necessary on the keys of the keyword arguments:
collection = Transaction.search(
order_id__starts_with='a2d',
customer_website__ends_with='.com',
billing__first_name__exact='John',
status__in=[
Transaction.Status.Authorized,
Transaction.Status.Settled
],
amount__between=("10.00", "20.00")
)