code: def get_idd_code(self, ip):
          ''' Get idd_code '''
          rec = self.get_all(ip)
          return rec and rec.idd_codf get_idd_code(self, ip):
          ''' Get idd_code '''
          rec = self.get_all(ip)
          return rec and rec.idd_code
docs: Get idd_code