  from .models import AggregateTestModel, HotelReservation, Room, StatTestModel
  
  try:
      from django.contrib.postgres.aggregates import (
          ArrayAgg, BitAnd, BitOr, BoolAnd, BoolOr, Corr, CovarPop, JSONBAgg,
          RegrAvgX, RegrAvgY, RegrCount, RegrIntercept, RegrR2, RegrSlope,
          RegrSXX, RegrSXY, RegrSYY, StatAggregate, StringAgg,
      )
      from django.contrib.postgres.fields import ArrayField
  except ImportError:
      pass  # psycopg2 is not installed
  
 
</s> remove     'ArrayAgg', 'BitAnd', 'BitOr', 'BoolAnd', 'BoolOr', 'JSONBAgg', 'StringAgg',
 </s> add     'ArrayAgg', 'BitAnd', 'BitOr', 'BitXor', 'BoolAnd', 'BoolOr', 'JSONBAgg',
    'StringAgg', </s> remove * ...
 </s> add * The new :class:`BitXor() <django.contrib.postgres.aggregates.BitXor>`
  aggregate function returns an ``int`` of the bitwise ``XOR`` of all non-null
  input values.
        ArrayAgg, BitAnd, BitOr, BitXor, BoolAnd, BoolOr, Corr, CovarPop,
        JSONBAgg, RegrAvgX, RegrAvgY, RegrCount, RegrIntercept, RegrR2,
        RegrSlope, RegrSXX, RegrSXY, RegrSYY, StatAggregate, StringAgg,
  from .models import AggregateTestModel, HotelReservation, Room, StatTestModel
  
  try:
      from django.contrib.postgres.aggregates import (
        ArrayAgg, BitAnd, BitOr, BitXor, BoolAnd, BoolOr, Corr, CovarPop,
        JSONBAgg, RegrAvgX, RegrAvgY, RegrCount, RegrIntercept, RegrR2,
        RegrSlope, RegrSXX, RegrSXY, RegrSYY, StatAggregate, StringAgg,
        ArrayAgg, BitAnd, BitOr, BitXor, BoolAnd, BoolOr, Corr, CovarPop,
        JSONBAgg, RegrAvgX, RegrAvgY, RegrCount, RegrIntercept, RegrR2,
        RegrSlope, RegrSXX, RegrSXY, RegrSYY, StatAggregate, StringAgg,
        ArrayAgg, BitAnd, BitOr, BitXor, BoolAnd, BoolOr, Corr, CovarPop,
        JSONBAgg, RegrAvgX, RegrAvgY, RegrCount, RegrIntercept, RegrR2,
        RegrSlope, RegrSXX, RegrSXY, RegrSYY, StatAggregate, StringAgg,
      )
      from django.contrib.postgres.fields import ArrayField
  except ImportError:
      pass  # psycopg2 is not installed
  
keep keep keep keep replace replace replace keep keep keep keep keep
 Fixed #32961 -- Added BitXor() aggregate to django.contrib.postgres. 
tests/postgres_tests/test_aggregates.py