code: def first(self) -> "QuerySet":
          
          queryset = self._clone()
          queryset._limit = 1
          queryset._single = True
          return queryset
docs: Limit queryset to one object and return one object instead of list.