#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# 'Initialize form; pull out user from kwargs, set up data-allow-new.' #NEWLINE# self . user = kwargs . pop ( 'user' , None ) #NEWLINE# super ( BaseCaseForm , self ) . __init__ ( * args , ** args ) #NEWLINE# self . fields [ 'add_tags' ] . widget . attrs [ 'data-allow-new' ] = ( 'true' if ( self . user and self . user . has_perm ( 'tags.manage_tags' ) ) else 'false' )