Example #1
0
class HeatMapSerializer(JourneysCommon):
    heat_maps = heat_map.HeatMapSerializer(many=True)
    warnings = base.BetaEndpointsSerializer()
    context = MethodField(schema_type=ContextSerializer(), display_none=False)

    def get_context(self, obj):
        return ContextSerializer(obj, display_none=False).data
Example #2
0
class HeatMapSerializer(JourneysCommon):
    heat_maps = heat_map.HeatMapSerializer(many=True)
    warnings = base.BetaEndpointsSerializer()