#NEWLINE# def __init__( self , expression , * paths ) : #NEWLINE# #INDENT# from django_mysql.models.fields import JSONField #NEWLINE# exprs = [ expression ] #NEWLINE# for path in paths : #NEWLINE# #INDENT# if ( not hasattr ( path , 'resolve_expression' ) ) : #NEWLINE# #INDENT# path = Value ( path ) #NEWLINE# #UNINDENT# exprs . append ( path ) #NEWLINE# #UNINDENT# super ( JSONExtract , self ) . __init__ ( * exprs , output_field = JSONField ( ) )