Fixed #19326 -- Added QuerySet method first()

Thanks to Wim Feijen for the original patch.