#NEWLINE# def __init__( self , user , * args , **kwargs ) : #NEWLINE# #INDENT# 'Sets allowed values' #NEWLINE# if ( 'instance' in kwargs ) : #NEWLINE# #INDENT# self . instance = kwargs [ 'instance' ] #NEWLINE# del kwargs [ 'instance' ] #NEWLINE# #UNINDENT# super ( MassActionForm , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# self . fields [ 'status' ] . queryset = Object . filter_permitted ( user , TicketStatus . objects , mode = 'x' ) #NEWLINE# self . fields [ 'status' ] . label = _ ( 'Status' ) #NEWLINE# self . fields [ 'service' ] . queryset = Object . filter_permitted ( user , Service . objects , mode = 'x' ) #NEWLINE# self . fields [ 'service' ] . label = _ ( 'Service' ) #NEWLINE# self . fields [ 'queue' ] . queryset = Object . filter_permitted ( user , TicketQueue . objects , mode = 'x' ) #NEWLINE# self . fields [ 'queue' ] . label = _ ( 'Queue' ) #NEWLINE# self . fields [ 'delete' ] = forms . ChoiceField ( label = _ ( 'Delete' ) , choices = ( ( '' , '-----' ) , ( 'delete' , _ ( 'Delete Completely' ) ) , ( 'trash' , _ ( 'Move to Trash' ) ) ) , required = False )