              kwargs['child'] = cls()
              return CustomManyRelatedField(*args, **kwargs)
          """
          list_kwargs = {'child_relation': cls(*args, **kwargs)}
          for key in kwargs.keys():
              if key in MANY_RELATION_KWARGS:
                  list_kwargs[key] = kwargs[key]
          return ManyRelatedField(**list_kwargs)
  
      def run_validation(self, data=empty):
 
</s> remove         columns = [key for key in header.keys() if key != 'url']
        details = [key for key in header.keys() if key != 'url']
 </s> add         columns = [key for key in header if key != 'url']
        details = [key for key in header if key != 'url'] </s> remove         for key in self.params.keys():
 </s> add         for key in self.params: </s> remove         for key in self._data.keys():
 </s> add         for key in self._data: </s> remove     return [ret[item] for item in sorted(ret.keys())]
 </s> add     return [ret[item] for item in sorted(ret)] </s> remove                 for key in queryset.query.annotations.keys()
 </s> add                 for key in queryset.query.annotations
        for key in kwargs:
              kwargs['child'] = cls()
              return CustomManyRelatedField(*args, **kwargs)
          """
          list_kwargs = {'child_relation': cls(*args, **kwargs)}
        for key in kwargs:
              if key in MANY_RELATION_KWARGS:
                  list_kwargs[key] = kwargs[key]
          return ManyRelatedField(**list_kwargs)
  
      def run_validation(self, data=empty):
keep keep keep keep replace keep keep keep keep keep
 Perfer iter(dict) over iter(dict.keys()) (#5736)

Calling dict.keys() is unnecessary. The two are functionally equivalent
on modern Pythons.

Inspired by Lennart Regebro's talk "Prehistoric Patterns in Python" from
PyCon 2017.

https://www.youtube.com/watch?v=V5-JH23Vk0I 
rest_framework/relations.py