#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( NotificationPreferencesForm , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# user_perms = UserPagePermissionsProxy ( self . instance . user ) #NEWLINE# if ( not user_perms . can_publish_pages ( ) ) : #NEWLINE# #INDENT# del kwargs . fields [ 'submitted_notifications' ] #NEWLINE# #UNINDENT# if ( not user_perms . can_edit_pages ( ) ) : #NEWLINE# #INDENT# del self . fields [ 'approved_notifications' ] #NEWLINE# del self . fields [ 'rejected_notifications' ]