β Fullstack with Vue.jsQuestion 51 of 62
Where can ValidationError be used in Django?
π Explanation
ValidationError is used broadly across Django's validation system: in model clean methods, forms, custom field validate() methods, reusable validators, and DRF serializers. The wrong answers each wrongly restrict it to just one of these areas, when in fact it spans all of them.
Related questions
β PreviousNo login needed