beat.web.utils.activity_stream_serializer module

class beat.web.utils.activity_stream_serializer.Serializer[source]

Bases: django.core.serializers.json.Serializer

Custom JSON serializer that replaces the actstream Action model ids by their natural key counterpart.

get_dump_object(obj)[source]
beat.web.utils.activity_stream_serializer.Deserializer(stream_or_string, **options)[source]

Custom JSON deserializer that will replace the natural keys generated by the serializer to their id counterpart.