We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b9842a commit 265cca4Copy full SHA for 265cca4
dynamic_rest/filters.py
@@ -530,7 +530,8 @@ def _filter_queryset(
530
except Exception as e:
531
# Some other Django error in parsing the filter. Very likely
532
# a bad query, so throw a ValidationError.
533
- raise ValidationError(e.message)
+ err_msg = getattr(e, 'message', '')
534
+ raise ValidationError(err_msg)
535
536
# A serializer can have this optional function
537
# to dynamically apply additional filters on
0 commit comments