[Answer]-Django rest framework serialization error

1👍

Try setting the source to the attribute/method name on the model. For example:

studentacademicprograms = StudentAcademicProgramsSerializer(
    many=True, 
    source='studentacademicprograms_set')

The example given in the Django Rest Framework Serializer relations docs sets a related name on the models which matches the attribute name in the serializer (the default). If the names don’t match you need to specify them model’s source method/attribute to use.

Leave a comment