1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Filtered out 'base' from database backend choices error message.

This commit is contained in:
Tim Graham
2015-07-15 10:19:38 -04:00
parent 48af591b2d
commit bbbb7ce115
2 changed files with 18 additions and 1 deletions

View File

@@ -114,7 +114,7 @@ def load_backend(backend_name):
try:
builtin_backends = [
name for _, name, ispkg in pkgutil.iter_modules([backend_dir])
if ispkg and name != 'dummy']
if ispkg and name not in {'base', 'dummy'}]
except EnvironmentError:
builtin_backends = []
if backend_name not in ['django.db.backends.%s' % b for b in