                  foreign_key = NestedModelSerializer(read_only=True):
                      id = IntegerField(label='ID', read_only=True)
                      name = CharField(max_length=100)
                  one_to_one = NestedModelSerializer(read_only=True):
                      id = IntegerField(label='ID', read_only=True)
                      name = CharField(max_length=100)
                  many_to_many = NestedModelSerializer(many=True, read_only=True):
                      id = IntegerField(label='ID', read_only=True)
                      name = CharField(max_length=100)
          """)
 
</s> remove                     id = IntegerField(label='ID', read_only=True)
 </s> add                     url = HyperlinkedIdentityField(view_name='manytomanytargetmodel-detail') </s> remove                     id = IntegerField(label='ID', read_only=True)
 </s> add                     url = HyperlinkedIdentityField(view_name='foreignkeytargetmodel-detail') </s> remove         class NestedModelSerializer(ModelSerializer):
 </s> add         class NestedModelSerializer(self.nested_class):
                    url = HyperlinkedIdentityField(view_name='onetoonetargetmodel-detail')
                  foreign_key = NestedModelSerializer(read_only=True):
                      id = IntegerField(label='ID', read_only=True)
                      name = CharField(max_length=100)
                  one_to_one = NestedModelSerializer(read_only=True):
                    url = HyperlinkedIdentityField(view_name='onetoonetargetmodel-detail')
                      name = CharField(max_length=100)
                  many_to_many = NestedModelSerializer(many=True, read_only=True):
                      id = IntegerField(label='ID', read_only=True)
                      name = CharField(max_length=100)
          """)
keep keep keep keep replace keep keep keep keep keep
 Fix nested model serializer base class 
tests/test_model_field_mappings.py