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

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

src/a/d/adhawk-HEAD/adhawk/libs/db_script/management/commands/find_family.py   adhawk(Download)
    def get_other_funders(self,state):
        funder_set = set()
        for f in Funder.objects.filter(state=state):
            if f.funder_family:
                if len(f.funder_family.funder_set.all()) <= 1:

src/a/d/adhawk-HEAD/adhawk/libs/db_script/management/commands/initialize_funder_families.py   adhawk(Download)
    def handle(self, *args, **options):
 
        #log = set_up_logger("funder_family_initialize","db_script/processing")
 
        funder_objects = Funder.objects.filter(funder_family=None)

src/a/d/adhawk-HEAD/adhawk/libs/db_script/management/commands/import_ie.py   adhawk(Download)
    def handle(self, *args, **options):
 
        funders = Funder.objects.filter(IE_id=None)
 
        count = len(funders)

src/a/d/adhawk-HEAD/adhawk/sitemap.py   adhawk(Download)
    def items(self):
        funders = Funder.objects.filter(media_profile_assigned=True)
        funder_families = set([])
        for funder in funders:
            funder_families.add(funder.funder_family)