Re: [Django] #35547: reset_queries not included in __all__ of django/db/__init__.py (was: reset_queries cannot be imported from django.db)

4 views
Skip to first unread message

Django

unread,
Jun 24, 2024, 3:06:02 AM6/24/24
to django-...@googlegroups.com
#35547: reset_queries not included in __all__ of django/db/__init__.py
-------------------------------------+-------------------------------------
Reporter: AjmalPonneth | Owner:
Type: | AjmalPonneth
Cleanup/optimization | Status: assigned
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* summary: reset_queries cannot be imported from django.db =>
reset_queries not included in __all__ of django/db/__init__.py


Old description:

> Currently, the reset_queries method cannot be imported from `django.db`.

New description:

Currently, the reset_queries method cannot be imported via `from django.db
import *`.

--
Comment:

Replying to [comment:5 Tim Graham]:
> I think the summary is slightly misleading. It can be imported with
`from django.db import reset_queries` but not with `from django.db import
*`, right?

Yes, it's misleading 👍
--
Ticket URL: <https://code.djangoproject.com/ticket/35547#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Reply all
Reply to author
Forward
0 new messages