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`.
Glossary: Django Beyond the Basics
Also written: .exists()
A QuerySet method that only asks whether at least one row matches. It is cheaper than `count() > 0`.