Exemple #1
0
class GeoStatusSerializer(serpy.DictSerializer):
    geo_status = geo_status.GeoStatusSerializer()
    context = MethodField(schema_type=ContextSerializer(), display_none=False)

    def get_context(self, obj):
        return ContextSerializer(obj, is_utc=True, display_none=False).data
Exemple #2
0
class GeoStatusSerializer(serpy.DictSerializer):
    geo_status = geo_status.GeoStatusSerializer()