Skip to content

Glossary: Django Beyond the Basics

exists()

Also written: .exists()

A QuerySet method that only asks whether at least one row matches. It is cheaper than `count() > 0`.

Where the book teaches it

Related terms

only()