From b5827cd9364c5412676d407259582206de4e1648 Mon Sep 17 00:00:00 2001 From: Bertrand Bordage Date: Sat, 3 Jun 2017 18:47:06 +0200 Subject: [PATCH] Removes a useless check. --- cachalot/utils.py | 3 --- 1 file changed, 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'):