示例#1
0
class TrafficReportSerializer(PbNestedSerializer):
    network = pt.NetworkSerializer()
    lines = pt.LineSerializer(many=True)
    stop_areas = pt.StopAreaSerializer(many=True)
    vehicle_journeys = pt.VehicleJourneySerializer(many=True)
示例#2
0
class VehicleJourneysSerializer(PTReferentialSerializer):
    vehicle_journeys = pt.VehicleJourneySerializer(many=True)