@register.assignment_tag(takes_context=True)
def entity_preview(context):
    _parent = {}
    instances = context['objects']
    app = context['app_title']

    for instance in instances:
        _parent[instance.id] = get_entity_data(
            instance, app, 'preview')

    return _parent
Returns pair for field/values for preview
dataset/ETHPy150Open faxad/djangoCRUD/djangocrud/core/templatetags/core_tags.py/entity_preview