The horizon.utils.lazy_encoder ModuleΒΆ

class horizon.utils.lazy_encoder.LazyTranslationEncoder(skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, encoding='utf-8', default=None)[source]

Bases: django.core.serializers.json.DjangoJSONEncoder

JSON encoder that resolves lazy objects like translations

default(obj)[source]

Previous topic

The horizon.utils.csvbase Module

Next topic

The horizon.utils Module

Project Source

This Page