You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which version of odata-query are you using?
0.10.0
Django 4.1.9
What went wrong?
Filtering a UUID field using the IN operator returns a Django validation error.
What did you expect to happen?
The OData query should be applied and results matching the IN criterium should be returned.
Detailed steps to reproduce
filter_query = 'id in (952895ec-3264-4132-bc73-71bdbca00be1, 5eec54ba-d290-4c20-a273-61032eb3919e)'
return apply_odata_query(queryset, filter_query)
Traceback (most recent call last):
File "...\Lib\site-packages\django\db\models\fields_init_.py", line 2649, in to_python
return uuid.UUID(**{input_form: value})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\Python312\Lib\uuid.py", line 175, in init
hex = hex.replace('urn:', '').replace('uuid:', '')
^^^^^^^^^^^
AttributeError: 'Value' object has no attribute 'replace'
During handling of the above exception, another exception occurred
...
...\Lib\site-packages\django\db\models\fields_init_.py", line 2651, in to_python
raise exceptions.ValidationError(
django.core.exceptions.ValidationError: ["‘Value(UUID('952895ec-3264-4132-bc73-71bdbca00be1'))’ is geen geldige UUID."]
The text was updated successfully, but these errors were encountered:
Which version of odata-query are you using?
0.10.0
Django 4.1.9
What went wrong?
Filtering a UUID field using the IN operator returns a Django validation error.
What did you expect to happen?
The OData query should be applied and results matching the IN criterium should be returned.
Detailed steps to reproduce
The text was updated successfully, but these errors were encountered: