post-thumb

Introduction to serializer relation in DRF

"Bad programmers worry about the code. Good programmers worry about data structures and their relationships."-  Linus

In this tutorial we willlearn about the serializer relation in Django rest framework.

Relational fields are used to represent model relationships. They can be applied to ForeignKeyManyToManyField and OneToOneField relationships, as well as to reverse relationships, and custom relationships such as GenericForeignKey.