How to use the simpleui.templatetags.simpletags.LazyEncoder function in simpleui

To help you get started, we’ve selected a few simpleui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github newpanjing / simpleui / simpleui / templatetags / simpletags.py View on Github external
def date_to_json(obj):
    return json.dumps(obj.date_params, cls=LazyEncoder)
github newpanjing / simpleui / simpleui / templatetags / simpletags.py View on Github external
def default(self, obj):
        if isinstance(obj, Promise):
            return force_text(obj)
        return super(LazyEncoder, self).default(obj)

simpleui

django admin theme 后台模板

MIT
Latest version published 11 days ago

Package Health Score

77 / 100
Full package analysis

Similar packages