(self, obj)
| 1387 | } |
| 1388 | ) |
| 1389 | def get_ability_pokemon(self, obj): |
| 1390 | pokemon_ability_objects = PokemonAbility.objects.filter(ability=obj) |
| 1391 | data = PokemonAbilitySerializer( |
| 1392 | pokemon_ability_objects, many=True, context=self.context |
| 1393 | ).data |
| 1394 | pokemon = [] |
| 1395 | |
| 1396 | for poke in data: |
| 1397 | del poke["ability"] |
| 1398 | pokemon.append(poke) |
| 1399 | |
| 1400 | return pokemon |
| 1401 | |
| 1402 | |
| 1403 | ###################### |
nothing calls this directly
no test coverage detected