code: def get_related(self, instance, number):
          
          related_pks = self.compute_related(instance.pk)[:number]
          related_pks = [pk for pk, score in related_pks]
          related_objects = sorted(
              self.queryset.model.objects.filter(pk__in=related_pks),
              key=lambda x: related_pks.index(x.pk))
          return related_objects
docs: Return a list of the most related objects to instance.