code: def sha1(self):
          
          sha1 = hashlib.sha1(''.join(['%s:%s' % (k,v) for k,v in self.items()]))
          return str(sha1.hexdigest())
docs: Return a sha1 hash of the model items.
  
          :rtype: str