Skip to content

Commit

Permalink
hashlib wants bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
rloomans committed Jan 30, 2017
1 parent e8e3654 commit e3dce23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teamtemp/responses/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __str__(self):

def clean(self):
self.word_list = self.word_list.lower().strip()
self.word_hash = hashlib.sha1(self.word_list).hexdigest()
self.word_hash = hashlib.sha1(self.word_list.encode('utf-8')).hexdigest()


class User(models.Model):
Expand Down

0 comments on commit e3dce23

Please sign in to comment.