      title = models.CharField(max_length=20, verbose_name='verbose title')
      text = models.CharField(max_length=100)
  
  
  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)
  
 
</s> remove             if not getattr(field, 'write_only', False) and not field.source == '*'
 </s> add             if (
                not getattr(field, 'write_only', False) and
                not field.source == '*' and
                field.source not in model_property_names
            )
    @property
    def description(self):
        return self.title + ": " + self.text

      title = models.CharField(max_length=20, verbose_name='verbose title')
      text = models.CharField(max_length=100)
  
    @property
    def description(self):
        return self.title + ": " + self.text

  
  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)
  
keep keep add keep keep keep keep keep
 Ordering filter bug with model property serializer field (#7609)

* Add failing tests for ordering filter with model property

* Fix get_default_valid_fields of OrderingFilter

* Filter model properties in get_default_valid_fields of OrderingFilter 
tests/test_filters.py