Exemple #1
0
class GraphicalIsrochoneSerializer(JourneysCommon):
    isochrones = graphical_isochron.GraphicalIsrochoneSerializer(attr='graphical_isochrones', 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
Exemple #2
0
class GraphicalIsrochoneSerializer(JourneysCommon):
    isochrones = graphical_isochron.GraphicalIsrochoneSerializer(attr='graphical_isochrones', many=True)
    warnings = base.BetaEndpointsSerializer()