rest_framework.utils.urls

Module Contents

replace_query_param(url, key, val)

Given a URL and a key/val pair, set or replace an item in the query parameters of the URL, and return the new URL.

remove_query_param(url, key)

Given a URL and a key/val pair, remove an item in the query parameters of the URL, and return the new URL.