toolware/utils/generic.py
def get_unique_key_from_get(get_dict):
    """
    Build a unique key from get data
    """
    site = Site.objects.get_current()
    key = get_dict_to_encoded_url(get_dict)
    cache_key = '{}_{}'.format(site.domain, key)
    return hashlib.md5(cache_key).hexdigest()
def get_unique_key_from_get(get_dict):
    site = Site.objects.get_current()
    key = get_dict_to_encoded_url(get_dict)
    cache_key = '{}_{}'.format(site.domain, key)
    return hashlib.md5(cache_key).hexdigest()
def get_unique_key_from_get ( get_dict ) : site = Site . objects . get_current ( ) key = get_dict_to_encoded_url ( get_dict ) cache_key = '{}_{}' . format ( site . domain , key ) return hashlib . md5 ( cache_key ) . hexdigest ( )
Build a unique key from get data
Build a unique key from get data