code: def get_next_input(self):
          
  
          # TODO: could override input if we get input coming in at the same time
          all_input = Deployment.objects.get(pk=self.id).input or ''
          lines = all_input.splitlines()
          first_line = lines[0] if len(lines) else None
          lines = lines[1:] if len(lines) > 1 else []
          Deployment.objects.filter(pk=self.id).update(input='\n'.join(lines))
          return first_line
docs: Returns the next line of input
          :return: string of input