#29223: Dummy database backend may not informs as usable
-----------------------------------------+------------------------
               Reporter:  Wagner Macedo  |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Uncategorized  |        Version:  2.0
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 As far as I understood, the dummy database backend in
 `django.db.backends.dummy` is used when we set an empty dictionary in
 `DATABASES` setting, depicting a not usable database.

 So, maybe it's a mistake this backend returns (always) that is usable:

 {{{
     def is_usable(self):
         return True
 }}}

 This code can be seen in the repository
 
[[https://github.com/django/django/blob/60e52a047e55bc4cd5a93a8bd4d07baed27e9a22/django/db/backends/dummy/base.py#L72-L73|here]].

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29223>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/057.f9e1302d62e270ea9f8e32de2d0dc6de%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to