def quote_slashes(text):
 return re.sub(u'[;/]', _quote_slashes, text)

def quote_slashes ( text ) : return re . sub ( u'[;/]' , _quote_slashes , text )
quote / characters so that they arent visible to djangos url quoting .