In
[[https://github.com/django/django/blob/master/django/db/utils.py#L175|this
line]] the `conn['ENGINE']` is set to `'django.db.backends.dummy'` if it
is missed.
In
[[https://github.com/django/django/blob/master/django/db/utils.py#L176|the
next line]] it is checked for existence.
We can remove this check.
--
Ticket URL: <https://code.djangoproject.com/ticket/20956>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Created [[https://github.com/django/django/pull/1504|a push request]] for
this ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/20956#comment:1>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/20956#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"ce0e86cf761dc182ae6fb8c0d68964955d19ec75"]:
{{{
#!CommitTicketReference repository=""
revision="ce0e86cf761dc182ae6fb8c0d68964955d19ec75"
Fixed #20956 -- Removed useless check in django.db.utils
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20956#comment:3>
Comment (by Tim Graham <timograham@…>):
In [changeset:"768bbf3efe0c412bced1e865e90139a0f07dc613"]:
{{{
#!CommitTicketReference repository=""
revision="768bbf3efe0c412bced1e865e90139a0f07dc613"
Revert "Fixed #20956 -- Removed useless check in django.db.utils"
This reverts commit ce0e86cf761dc182ae6fb8c0d68964955d19ec75.
The check is necessary if 'ENGINE' is an empty string.
Thanks apollo13 for pointing this out.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20956#comment:4>
* resolution: fixed => invalid
--
Ticket URL: <https://code.djangoproject.com/ticket/20956#comment:5>
Comment (by koorgoo):
Sorry, guys.
Will be more accurate next time.
--
Ticket URL: <https://code.djangoproject.com/ticket/20956#comment:6>