hivesolutions / appier

Joyful Python Web App development
http://appier.hive.pt
Apache License 2.0
126 stars 22 forks source link

fix: convert to type in 'contains' value method #50

Closed BeeMargarida closed 2 years ago

BeeMargarida commented 2 years ago

In a case where there are references to another model by an int identifier, it would be impossible to make a query like filter: [field:contains:13], since 13 would always filter as a string. It was missing the type conversion present in in and not_in.

This is necessary for https://github.com/ripe-tech/ripe-util-vue/issues/218 (get bulk orders of a specific order)

BeeMargarida commented 2 years ago

@joamag This is necessary to unblock the bulk manager issue

coveralls commented 2 years ago

Coverage Status

Coverage decreased (-0.04%) to 63.933% when pulling 3d691201bb0b67da99633dd6361b6ecd85cab33a on BeeMargarida:ms/ype-conversion-contains-value-method into 68d4b0a14454e601312d5efb33c9e919209a7bae on hivesolutions:master.