old_contents: 
  from django.utils import six
  from glaze.utils.text import deslugify
  
  
  def foreign_fields(*args):
      items = []
      for i in args:
          if isinstance(i, six.string_types) and '__' in i:
              names = i.split('__')
              accessor = lambda obj: reduce(getattr, names, obj)
              accessor.short_description = deslugify(names[-1])
              accessor.admin_order_field = i
              items.append(accessor)
          else:
              items.append(i)
      return items
  
new_contents: 
  from django.utils import six
  from glaze.utils.text import deslugify
  
  
  def foreign_fields(*args):
      items = []
      for i in args:
          if isinstance(i, six.string_types) and '__' in i:
              names = i.split('__')
              accessor = lambda obj: reduce(getattr, names, obj)
              accessor.__name__ = names[-1]
              accessor.short_description = deslugify(names[-1])
              accessor.admin_order_field = i
              items.append(accessor)
          else:
              items.append(i)
      return items
  
subject: set __name__ attribute in foreign_fields