#35547: reset_queries cannot be imported from django.db
-------------------------------------+-------------------------------------
     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
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak):

 Replying to [comment:6 AjmalPonneth]:
 > Currently, the `reset_queries`  function is not importable from
 `django.db`.  Since it's not included in the ` __all__` from `django.db`.

 That's not true. `reset_queries` can be imported from `django.db` even
 without including it in `__all__`, e.g.
 
https://github.com/django/django/blob/7ba2a0db20c37a5b1500434ca4ed48022311c171/django/test/utils.py#L25.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35547#comment:7>
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/01070190464f24a2-1529730a-e156-4ca2-a1f7-91a7d207377b-000000%40eu-central-1.amazonses.com.

Reply via email to