Coverage for django_napse/api/bots/serializers/plugin_serializer.py: 100%
9 statements
« prev ^ index » next coverage.py v7.4.3, created at 2024-03-12 13:49 +0000
« prev ^ index » next coverage.py v7.4.3, created at 2024-03-12 13:49 +0000
1from rest_framework import serializers
3from django_napse.api.bots.serializers.strategy_serializer import StrategySerializer
4from django_napse.core.models.bots.plugin import Plugin
7class PluginSerializer(serializers.ModelSerializer):
8 strategy = StrategySerializer()
10 class Meta:
11 model = Plugin
12 fields = "__all__"
13 read_only_fields = [
14 "id",
15 ]