      file_field = models.FileField(max_length=100)
      time_field = models.TimeField()
      url_field = models.URLField(max_length=100)
      custom_field = CustomField()
      file_path_field = models.FilePathField(path='/tmp/')
  
      def method(self):
          return 'method'
  
  
 
</s> remove                 file_path_field = FilePathField(path='/tmp/')
        """)
 </s> add                 file_path_field = FilePathField(path=%r)
        """ % tempfile.gettempdir())
    file_path_field = models.FilePathField(path=tempfile.gettempdir())
      file_field = models.FileField(max_length=100)
      time_field = models.TimeField()
      url_field = models.URLField(max_length=100)
      custom_field = CustomField()
    file_path_field = models.FilePathField(path=tempfile.gettempdir())
  
      def method(self):
          return 'method'
  
  
keep keep keep keep replace keep keep keep keep keep
 Changed hardcoded /tmp/ directory to autodetect from system (#7292) 
tests/test_model_serializer.py