summaryrefslogtreecommitdiff
path: root/django/db/models/sql/datastructures.py
diff options
context:
space:
mode:
authorJohannes Dollinger <emulbreh@googlemail.com>2016-05-25 21:00:20 +0200
committerTim Graham <timograham@gmail.com>2016-08-08 10:43:34 -0400
commit46509cf13dbf049f75077981c29ef2c60b5a96ab (patch)
tree7e9400fede5c49a2cb2efa666d8fc44d0752ad3c /django/db/models/sql/datastructures.py
parentc002a0d39f18694f5e8a07d86684fc793b063056 (diff)
Moved EmpytResultSet to django.core.exceptions.
This removes the need for some inner imports.
Diffstat (limited to 'django/db/models/sql/datastructures.py')
-rw-r--r--django/db/models/sql/datastructures.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/django/db/models/sql/datastructures.py b/django/db/models/sql/datastructures.py
index 42f2d8790d..02e4f930e1 100644
--- a/django/db/models/sql/datastructures.py
+++ b/django/db/models/sql/datastructures.py
@@ -2,13 +2,11 @@
Useful auxiliary data structures for query construction. Not useful outside
the SQL domain.
"""
+# for backwards-compatibility in Django 1.11
+from django.core.exceptions import EmptyResultSet # NOQA: F401
from django.db.models.sql.constants import INNER, LOUTER
-class EmptyResultSet(Exception):
- pass
-
-
class MultiJoin(Exception):
"""
Used by join construction code to indicate the point at which a