Django Serialize Fremd Key, Django Serializer Fremdschlüssel

class ItemSerializer(serializers.ModelSerializer):
    category_name = serializers.CharField(source='category.name')

    class Meta:
        model = Item
        fields = ('id', 'name', 'category_name')
Ahmed Shimul