(context, export_format, export_trigger_param=None)
return QuerystringNode(updates={export_trigger_param: export_format}, removals=[]).render(
        context
    )
Returns an export URL for the given file `export_format`, preserving current
    query string parameters.

    Example for a page requested with querystring ``?q=blue``::

        {% export_url "csv" %}

    It will return::

        ?q=blue&amp;_export=csv
Returns an export URL for the given file `export_format`, preserving current
    query string parameters.
Returns an export URL for the given file export_format preserving current query string parameters .
def export_url(context, export_format, export_trigger_param=None):
    """
    Returns an export URL for the given file `export_format`, preserving current
    query string parameters.

    Example for a page requested with querystring ``?q=blue``::

        {% export_url "csv" %}

    It will return::

        ?q=blue&amp;_export=csv
    """

    if export_trigger_param is None and "view" in context:
        export_trigger_param = getattr(context["view"], "export_trigger_param", None)

    export_trigger_param = export_trigger_param or "_export"

    return QuerystringNode(updates={export_trigger_param: export_format}, removals=[]).render(
        context
    )
def export_url ( context , export_format , export_trigger_param = None ) : if export_trigger_param is None and "view" in context : export_trigger_param = getattr ( context [ "view" ] , "export_trigger_param" , None ) export_trigger_param = export_trigger_param or "_export" return QuerystringNode ( updates = { export_trigger_param : export_format } , removals = [ ] ) . render ( context )