<s> from django . core . management . base import BaseCommand , CommandError <EOL> from summary_data . models import Committee_Overlay , Candidate_Overlay , Committee_Time_Summary , Authorized_Candidate_Committees <EOL> from fec_alerts . models import WebK , new_filing <EOL> blacklisted_committees = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> blacklisted_candidates = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> class Command ( BaseCommand ) : <EOL> help = "<STR_LIT>" <EOL> requires_model_validation = False <EOL> def handle ( self , * args , ** options ) : <EOL> for fecid in blacklisted_committees : <EOL> Committee_Overlay . objects . filter ( fec_id = fecid ) . delete ( ) <EOL> Committee_Time_Summary . objects . filter ( com_id = fecid ) . delete ( ) <EOL> Authorized_Candidate_Committees . objects . filter ( committee_id = fecid ) . delete ( ) <EOL> WebK . objects . filter ( com_id = fecid ) . delete ( ) <EOL> new_filing . objects . filter ( fec_id = fecid ) . delete ( ) <EOL> for fecid in blacklisted_candidates : <EOL> Candidate_Overlay . objects . filter ( fec_id = fecid ) . delete ( ) <EOL> Authorized_Candidate_Committees . objects . filter ( candidate_id = fecid ) . delete ( ) </s>
