def _build_admin_filter_url(model, filters):
    """Build a filter URL to an admin changelist of all objects with similar field values."""
    url = reverse(_get_admin_route_name(model) + '_changelist')
    parts = urlsplit(url)
    query = parse_qs(parts.query)
    query.update(filters)
    parts_with_filter = parts._replace(query=urlencode(query))
    return urlunsplit(parts_with_filter)
def _build_admin_filter_url ( model , filters ) : url = reverse ( _get_admin_route_name ( model ) + '_changelist' ) parts = urlsplit ( url ) query = parse_qs ( parts . query ) query . update ( filters ) parts_with_filter = parts . _replace ( query = urlencode ( query ) ) return urlunsplit ( parts_with_filter )
Build a filter URL to an admin changelist of all objects with similar field values.