| 4025 | |
| 4026 | |
| 4027 | class 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 | ############################## |
nothing calls this directly
no test coverage detected