#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# product = kwargs . pop ( 'product' ) #NEWLINE# super ( StockForm , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# self . fields [ 'variant' ] = forms . ModelChoiceField ( queryset = self . variants )