Updated EmpytResultSet import not to use the alias.

This commit is contained in:
Mariusz Felisiak 2017-09-03 15:20:51 +02:00 committed by Tim Graham
parent 35800acf79
commit fe0184b412
1 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,9 @@ from contextlib import suppress
from itertools import chain, count, product
from string import ascii_uppercase
from django.core.exceptions import FieldDoesNotExist, FieldError
from django.core.exceptions import (
EmptyResultSet, FieldDoesNotExist, FieldError,
)
from django.db import DEFAULT_DB_ALIAS, connections
from django.db.models.aggregates import Count
from django.db.models.constants import LOOKUP_SEP
@ -25,7 +27,7 @@ from django.db.models.sql.constants import (
INNER, LOUTER, ORDER_DIR, ORDER_PATTERN, SINGLE,
)
from django.db.models.sql.datastructures import (
BaseTable, Empty, EmptyResultSet, Join, MultiJoin,
BaseTable, Empty, Join, MultiJoin,
)
from django.db.models.sql.where import (
AND, OR, ExtraWhere, NothingNode, WhereNode,