  
  class OrderingFilterRelatedModel(models.Model):
      related_object = models.ForeignKey(OrderingFilterModel, related_name="relateds", on_delete=models.CASCADE)
  
  
  class OrderingFilterSerializer(serializers.ModelSerializer):
      class Meta:
 
</s> remove             (field.source or field_name, field.label)
 </s> add             (field.source.replace('.', '__') or field_name, field.label)
    index = models.SmallIntegerField(help_text="A non-related field to test with", default=0)
  
  class OrderingFilterRelatedModel(models.Model):
      related_object = models.ForeignKey(OrderingFilterModel, related_name="relateds", on_delete=models.CASCADE)
    index = models.SmallIntegerField(help_text="A non-related field to test with", default=0)
  
  
  class OrderingFilterSerializer(serializers.ModelSerializer):
      class Meta:
keep keep add keep keep keep keep
 Fix dotted source ordering (#5533)

* replaced '.' for '__' in dotted ordering sources

* Add test for non-dotted source. 
tests/test_filters.py