#NEWLINE# def match_campaign( self ) : #NEWLINE# #INDENT# for campaign in Campaign . objects . exclude ( pattern = '' ) : #NEWLINE# #INDENT# if ( campaign . pattern in campaign . name ) : #NEWLINE# #INDENT# self . campaign = campaign #NEWLINE# self . save ( ) #NEWLINE# break