MCPcopy Create free account
hub / github.com/PokeAPI/pokeapi / PokemonHabitatDetailSerializer

Class PokemonHabitatDetailSerializer

pokemon_v2/serializers.py:4027–4037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4025
4026
4027class PokemonHabitatDetailSerializer(serializers.ModelSerializer):
4028 names = PokemonHabitatNameSerializer(
4029 many=True, read_only=True, source="pokemonhabitatname"
4030 )
4031 pokemon_species = PokemonSpeciesSummarySerializer(
4032 many=True, read_only=True, source="pokemonspecies"
4033 )
4034
4035 class Meta:
4036 model = PokemonHabitat
4037 fields = ("id", "name", "names", "pokemon_species")
4038
4039
4040##############################

Callers

nothing calls this directly

Tested by

no test coverage detected