def content_hash(self): if self.attributes['content_type'] == 'binary': return hash_local_file(self.template) else: return sha1(self.content)
def content_hash(self): if self.attributes["content_type"] == "binary": return hash_local_file(self.template) else: return sha1(self.content)