Open cameel opened 8 years ago
Thanks for reporting it. We'll look into this but I can't give any estimates right now. Our core maintainer of this module is currently occupied with other tasks.
Feel free to send a PR with a fix proposal if you have one.
Django REST Framework recommends raising a
ValidationError
into_internal_value()
method of a custom field to report a validation error (see DRF > API Guide > Fields > Raising validation errors). The plugin crashes withAttributeError
when I do that. It assumes that the serializer has a method calledvalidate_<field name>
while it does not.How to reproduce
Here's a custom field example taken from DRF docs (linked above). Imports and serializers added by me:
Normal serializer works as expected
Serializer with FriendlyErrorMessagesMixin raises AttributeError