  from django.db.models.functions import Lower
  from django.db.models.lookups import Exact, GreaterThan, IsNull, LessThan
  from django.db.models.sql.constants import SINGLE
  from django.db.models.sql.query import JoinPromoter, Query, get_field_names_from_opts
  from django.db.models.sql.where import OR
  from django.test import SimpleTestCase, TestCase, skipUnlessDBFeature
  from django.test.utils import register_lookup
  
  from .models import Author, Item, ObjectC, Ranking
  
 
</s> remove from django.db.models.sql.where import NothingNode, WhereNode
 </s> add from django.db.models.sql.where import AND, OR, NothingNode, WhereNode </s> remove             if self.effective_connector == "OR" and votes < self.num_children:
 </s> add             if self.effective_connector == OR and votes < self.num_children: </s> remove         w = WhereNode(children=[NothingNode(), self.DummyNode()], connector="OR")
 </s> add         w = WhereNode(children=[NothingNode(), self.DummyNode()], connector=OR)
from django.db.models.sql.where import AND, OR
  from django.db.models.functions import Lower
  from django.db.models.lookups import Exact, GreaterThan, IsNull, LessThan
  from django.db.models.sql.constants import SINGLE
  from django.db.models.sql.query import JoinPromoter, Query, get_field_names_from_opts
from django.db.models.sql.where import AND, OR
  from django.test import SimpleTestCase, TestCase, skipUnlessDBFeature
  from django.test.utils import register_lookup
  
  from .models import Author, Item, ObjectC, Ranking
  
keep keep keep keep replace keep keep keep keep keep
 Used AND, OR, XOR constants instead of hard-coded values. 
tests/queries/test_query.py