

def retrieve_object(model, *args, **kwargs):
    '\n    Retrieves a specific object from a given model by primary-key\n    lookup, and stores it in a context variable.\n    \n    Syntax::\n    \n        {% retrieve_object [app_name].[model_name] [lookup kwargs] as [varname] %}\n    \n    Example::\n    \n        {% retrieve_object flatpages.flatpage pk=12 as my_flat_page %}\n    \n    '
    if (len(args) == 1):
        kwargs.update({
            'pk': model[0],
        })
    _model = _get_model(model)
    try:
        return _model._default_manager.get(**kwargs)
    except _model.DoesNotExist:
        return ''

dataset/ETHPy150Open justquick/django-native-tags/native_tags/contrib/generic_content.py retrieve_object/VarMisuse@38/175 `args`->`model`