MCPcopy Index your code
hub / github.com/PokeAPI/pokeapi / EncounterMethodDetailSerializer

Class EncounterMethodDetailSerializer

pokemon_v2/serializers.py:894–901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

892
893
894class EncounterMethodDetailSerializer(serializers.ModelSerializer):
895 names = EncounterMethodNameSerializer(
896 many=True, read_only=True, source="encountermethodname"
897 )
898
899 class Meta:
900 model = EncounterMethod
901 fields = ("id", "name", "order", "names")
902
903
904class EncounterSlotSerializer(serializers.ModelSerializer):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected