![]() This can be achieved by using validator functions and validator classes. However, sometimes you'll want to place your validation logic into reusable components, so that it can easily be reused throughout your codebase. ![]() Most of the time you're dealing with validation in REST framework you'll simply be relying on the default field validation, or writing explicit validation methods on serializer or field classes. Validators can be useful for re-using validation logic between different types of fields.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |