Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#10833 closed (fixed)

django.db.load_backend loads the backend from settings.DATABASE_ENGINE regardless of what's passed to it

Reported by: Alex Gaynor Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

http://code.djangoproject.com/browser/django/trunk/django/db/__init__.py#L17

-        return import_module('.base', 'django.db.backends.%s' % settings.DATABASE_ENGINE)
+        return import_module('.base', 'django.db.backends.%s' % backend_name)

Change History (3)

comment:1 Changed 7 years ago by Alex Gaynor

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedReady for checkin

comment:2 Changed 7 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [10560]) Fixed #10833 -- Corrected load_backend so that it actually loads the requested backend, rather than always loading settings.DATABASE_BACKEND. Thanks to Alex Gaynor for the report and fix.

comment:3 Changed 5 years ago by Jacob

milestone: 1.1

Milestone 1.1 deleted

Note: See TracTickets for help on using tickets.
Back to Top