Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/a/d/adhawk-HEAD/adhawk/libs/db_script/fec_kb_updater.py   adhawk(Download)
def make_candidate_object(cr):
    if cr.incumbent_challenger_open:
        ics,created_ics = IncumbentChallengerStatus.objects.get_or_create(
            code=cr.incumbent_challenger_open)
        if created_ics:
def diff_candidate(candidate,cr):
    if cr.incumbent_challenger_open:
        try:
            ics = IncumbentChallengerStatus.objects.get_or_create(
                code=cr.incumbent_challenger_open)
def merge_candidate_object(candidate,cr):
    if cr.incumbent_challenger_open:
        ics,created_ics = IncumbentChallengerStatus.objects.get_or_create(
                code=cr.incumbent_challenger_open)
        if created_ics: