django/django — pull request #1788 by claudep (2013-10-21 17:34:54+00:00)
Title: Fixed #16969 -- Don't connect to named database when possible

Thanks Andreas Pelme for the report and initial patch.