Commit 8a40b2ce authored by Ilham Maulana's avatar Ilham Maulana 💻

fix: add category_detail on books endpoint

parent 877e25ed
......@@ -10,7 +10,7 @@ class CategorySerializer(serializers.ModelSerializer):
class BookSerializer(serializers.ModelSerializer):
category = Category
category_detail = CategorySerializer(source="category", read_only=True)
class Meta:
model = Book
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment