code: def _get_ordering_field_lookup(self, field_name):
          
          field = field_name
          get_field = getattr(self, "get_%s_ordering_field" % field_name, None)
          if get_field:
              field = get_field()
          return field
docs: get real model field to order by