old_contents: # -*- coding: utf-8 -*-
  
  from __future__ import unicode_literals
  
  from django.conf import settings
  
  import hashlib
  
  
  def make(string):
      return hashlib.md5("{0}-{1}".format(string, settings.SECRET_KEY)).hexdigest()
new_contents: # -*- coding: utf-8 -*-
  
  from __future__ import unicode_literals
  
  from django.conf import settings
  
  import hashlib
  
  
  def make(string):
      key = "{0}-{1}".format(string, settings.SECRET_KEY)
  
      try:
          return hashlib.md5(key).hexdigest()
      except TypeError:
          return hashlib.md5(key.encode('utf-8')).hexdigest()
  
subject: fix of 'TypeError: Unicode-objects must be encoded before hashing'