@@ -63,7 +63,7 @@ def model(self, model):
6363
6464 @classmethod
6565 def _choices_is_value (cls , value ):
66- return isinstance (value , list | tuple ) or super ()._choices_is_value (value )
66+ return isinstance (value , ( list , tuple ) ) or super ()._choices_is_value (value )
6767
6868 def check (self , ** kwargs ):
6969 errors = super ().check (** kwargs )
@@ -126,7 +126,7 @@ def db_type(self, connection):
126126 return "array"
127127
128128 def get_db_prep_value (self , value , connection , prepared = False ):
129- if isinstance (value , list | tuple ):
129+ if isinstance (value , ( list , tuple ) ):
130130 return [self .base_field .get_db_prep_value (i , connection , prepared = False ) for i in value ]
131131 return value
132132
@@ -236,7 +236,7 @@ def as_mql(self, compiler, connection):
236236
237237class ArrayRHSMixin :
238238 def __init__ (self , lhs , rhs ):
239- if isinstance (rhs , tuple | list ):
239+ if isinstance (rhs , ( tuple , list ) ):
240240 expressions = []
241241 for value in rhs :
242242 if not hasattr (value , "resolve_expression" ):
0 commit comments