summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand Bordage <bordage.bertrand@gmail.com>2017-06-03 16:47:06 (GMT)
committerBertrand Bordage <bordage.bertrand@gmail.com>2017-06-03 16:47:06 (GMT)
commitb5827cd9364c5412676d407259582206de4e1648 (patch)
tree9520ad4953f875a86dcf59fd388f6dd1d46931cf
parentb634d18dc55b8f4779d88cdcdeb94847195db90e (diff)
downloaddjango-cachalot-b5827cd9364c5412676d407259582206de4e1648.zip
django-cachalot-b5827cd9364c5412676d407259582206de4e1648.tar.gz
django-cachalot-b5827cd9364c5412676d407259582206de4e1648.tar.bz2
Removes a useless check.
-rw-r--r--cachalot/utils.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/cachalot/utils.py b/cachalot/utils.py
index 09b5930..69538a8 100644
--- a/cachalot/utils.py
+++ b/cachalot/utils.py
@@ -9,7 +9,6 @@ from uuid import UUID
from django import VERSION as django_version
from django.db import connections
-from django.db.models.expressions import RawSQL
from django.db.models.sql import Query
from django.db.models.sql.where import (
ExtraWhere, SubqueryConstraint, WhereNode)
@@ -137,8 +136,6 @@ def _find_subqueries(children):
if hasattr(child, 'rhs'):
rhs = child.rhs
rhs_class = rhs.__class__
- if rhs_class is RawSQL:
- raise IsRawQuery
if rhs_class is Query:
yield rhs
elif hasattr(rhs, 'query'):