  
      reverse_relations = OrderedDict()
      for relation in opts.get_all_related_objects():
          accessor_name = relation.get_accessor_name()
          reverse_relations[accessor_name] = RelationInfo(
              model_field=None,
              related=related,
              to_many=relation.field.rel.multiple,
              has_through_model=False
          )
 
</s> remove             related=relation.model,
 </s> add             related=related, </s> remove             related=relation.model,
 </s> add             related=related,
        related = getattr(relation, 'related_model', relation.model)
  
      reverse_relations = OrderedDict()
      for relation in opts.get_all_related_objects():
          accessor_name = relation.get_accessor_name()
        related = getattr(relation, 'related_model', relation.model)
          reverse_relations[accessor_name] = RelationInfo(
              model_field=None,
              related=related,
              to_many=relation.field.rel.multiple,
              has_through_model=False
          )
keep keep keep add keep keep keep keep keep keep
 Work around meta API differences 
rest_framework/utils/model_meta.py