@@ -63,7 +63,7 @@ def model(self, model):
63
63
64
64
@classmethod
65
65
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 )
67
67
68
68
def check (self , ** kwargs ):
69
69
errors = super ().check (** kwargs )
@@ -126,7 +126,7 @@ def db_type(self, connection):
126
126
return "array"
127
127
128
128
def get_db_prep_value (self , value , connection , prepared = False ):
129
- if isinstance (value , list | tuple ):
129
+ if isinstance (value , ( list , tuple ) ):
130
130
return [self .base_field .get_db_prep_value (i , connection , prepared = False ) for i in value ]
131
131
return value
132
132
@@ -236,7 +236,7 @@ def as_mql(self, compiler, connection):
236
236
237
237
class ArrayRHSMixin :
238
238
def __init__ (self , lhs , rhs ):
239
- if isinstance (rhs , tuple | list ):
239
+ if isinstance (rhs , ( tuple , list ) ):
240
240
expressions = []
241
241
for value in rhs :
242
242
if not hasattr (value , "resolve_expression" ):
0 commit comments