

@register.assignment_tag(takes_context=True)
def entity_preview(context):
    'Returns pair for field/values for preview'
    _parent = {
        
    }
    instances = context['objects']
    app = context['app_title']
    for instance in instances:
        _parent[instance.id] = get_entity_data(instance, app, 'preview')
    return _parent

dataset/ETHPy150Open faxad/djangoCRUD/djangocrud/core/templatetags/core_tags.py entity_preview/original