docs: def _get_remote_field(field):
      """
      Compatible with Django 1.8~1.10 ('related' was renamed to 'remote_field')
      """
      if hasattr(field, 'remote_field'):
          return field.remote_field
      elif hasattr(field, 'related'):
          return field.related
      else:
          return None