summaryrefslogtreecommitdiff
path: root/django/db/models/sql
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/models/sql')
-rw-r--r--django/db/models/sql/query.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index 69178680ee..b514cc4783 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -1121,6 +1121,8 @@ class Query(object):
query. However, if the filter isn't added to the query then the caller
is responsible for unreffing the joins used.
"""
+ if isinstance(filter_expr, dict):
+ raise FieldError("Cannot parse keyword query as dict")
arg, value = filter_expr
if not arg:
raise FieldError("Cannot parse keyword query %r" % arg)