#NEWLINE# @ disable_for_loaddata #NEWLINE# def handle_party_save( sender , created , instance , **kwargs ) : #NEWLINE# #INDENT# if ( created and ( instance . _state . db == 'default' ) ) : #NEWLINE# #INDENT# PartyVotingStatistics . objects . get_or_create ( party = instance )