          """
          GET requests to ListCreateAPIView should return list of objects.
          """
          request = factory.get('/manytomany/1/')
          response = self.detail_view(request, pk=1).render()
          self.assertEquals(response.status_code, status.HTTP_200_OK)
          self.assertEquals(response.data, self.data[0])
  
  
  class TestCreateWithForeignKeys(TestCase):
 
</s> remove         into[(self.source or field_name)] = self.from_native(value)
 </s> add         if value is None and not self.blank:
            raise ValidationError('Value may not be null')
        elif value is None and self.blank:
            into[(self.source or field_name)] = None
        else:
            into[(self.source or field_name)] = self.from_native(value) </s> remove             return ManyPrimaryKeyRelatedField(queryset=queryset)
        return PrimaryKeyRelatedField(queryset=queryset)
 </s> add             return ManyPrimaryKeyRelatedField(**kwargs)
        return PrimaryKeyRelatedField(**kwargs) </s> remove         queryset = rel._default_manager
 </s> add  </s> remove         # # Ensure source 1 is updated, and everything else is as expected
 </s> add         # Ensure source 1 is updated, and everything else is as expected
        response = self.detail_view(request, pk=1)
          """
          GET requests to ListCreateAPIView should return list of objects.
          """
          request = factory.get('/manytomany/1/')
        response = self.detail_view(request, pk=1)
          self.assertEquals(response.status_code, status.HTTP_200_OK)
          self.assertEquals(response.data, self.data[0])
  
  
  class TestCreateWithForeignKeys(TestCase):
keep keep keep keep replace keep keep keep keep keep
 Support nullable FKs, with blank=True 
rest_framework/tests/hyperlinkedserializers.py