code: def download_as_text(name, filename):
      
      location = list(IPList.objects.filter(name))
      if location:
          iplist = location[0]
          return iplist.download(filename=filename, as_type='txt')
docs: Download IPList as text to specified filename.
  
      :param str name: name of IPList
      :param str filename: name of file for IPList download