                  through = NestedSerializer(many=True, read_only=True):
                      url = HyperlinkedIdentityField(view_name='throughtargetmodel-detail')
                      name = CharField(max_length=100)
          """)
          self.assertEqual(unicode_repr(TestSerializer()), expected)
  
      def test_nested_hyperlinked_relations_starred_source(self):
          class TestSerializer(serializers.HyperlinkedModelSerializer):
              class Meta:
                  model = RelationalModel
 
</s> remove         self.assertEqual(unicode_repr(TestSerializer()), expected)
 </s> add         self.assertEqual(repr(TestSerializer()), expected) </s> remove         self.assertEqual(unicode_repr(TestSerializer()), expected)
 </s> add         self.assertEqual(repr(TestSerializer()), expected) </s> remove         self.assertEqual(unicode_repr(TestSerializer()), expected)
 </s> add         self.assertEqual(repr(TestSerializer()), expected) </s> remove         self.assertEqual(unicode_repr(TestSerializer()), expected)
 </s> add         self.assertEqual(repr(TestSerializer()), expected) </s> remove         self.assertEqual(unicode_repr(TestSerializer()), expected)
 </s> add         self.assertEqual(repr(TestSerializer()), expected)
        self.assertEqual(repr(TestSerializer()), expected)
                  through = NestedSerializer(many=True, read_only=True):
                      url = HyperlinkedIdentityField(view_name='throughtargetmodel-detail')
                      name = CharField(max_length=100)
          """)
        self.assertEqual(repr(TestSerializer()), expected)
  
      def test_nested_hyperlinked_relations_starred_source(self):
          class TestSerializer(serializers.HyperlinkedModelSerializer):
              class Meta:
                  model = RelationalModel
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
tests/test_model_serializer.py