Fixed #19326 -- Added first() and last() methods to QuerySet