#35585: `Query.has_results` calls `.exists()` with wrong argument
-------------------------------------+-------------------------------------
Reporter: Flavio Curella | Owner: (none)
Type: Bug | Status: new
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak):
Replying to [comment:3 Simon Charette]:
> Regression caused by 3d734c09ff0138441dfe0a59010435871d17950f, I really
wish we had type checking in this part of the code base to catch these
kind of bugs that flew under the radar for almost two years.
Unfortunately, it hasn't change the behavior, because `limit` is `True` by
default and we check if it's truthy in `Query.exists()`.
--
Ticket URL: <https://code.djangoproject.com/ticket/35585#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701909340426d-c0a1a88d-399e-4d7b-8782-d04a0995413f-000000%40eu-central-1.amazonses.com.