Skip to content

Best/correct practice for object-level validation errors? #1135

Answered by sliverc
arttuperala asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your very detailed request. The way how you do validation on several fields is certainly correct. It seems you have found an issue with non field errors which DRF handles in a special manner but DJA is not aware of it.

As a workaround you can use custom exceptions and set the pointer manually.

Please file a bug where you outline your issue. Feel free to work on a PR if you desire.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arttuperala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants