use empty list instead of null for evolution details (#191)

This commit is contained in:
Sargun Vohra 2016-05-25 04:01:23 -04:00 committed by Paul Hallett
parent 254937c673
commit ba7cfafbc4

View file

@ -2872,7 +2872,7 @@ class EvolutionChainDetailSerializer(serializers.ModelSerializer):
entry['is_baby'] = species['is_baby']
entry['species'] = summary_data[index]
entry['evolution_details'] = evolution_data or None
entry['evolution_details'] = evolution_data or []
entry['evolves_to'] = []
# Keep track of previous entries for complex chaining