def playlist_url(self):
    """
    Generates a playlist URL
    """
new_url = re.sub('^(http:\\/\\/)([\\w\\W]+)&list=([\\w\\W]+)(\\&index=[\\d]+)$'
    , '//\\2?list=\\3', self.video_url)
Django - заменить части urlfield