MCPcopy Create free account
hub / github.com/codemistic/Web-Development / BookSerializer

Class BookSerializer

locallibrary/catalog/serializers.py:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23class BookSerializer(serializers.ModelSerializer):
24 author = serializers.StringRelatedField()
25 genre = GenreSerializer(many=True)
26 class Meta:
27 model = Book
28 fields = '__all__'

Callers 3

BookListViewFunction · 0.70
BookDetailViewFunction · 0.70
BookSpecificViewFunction · 0.70

Calls 1

GenreSerializerClass · 0.85

Tested by

no test coverage detected