def handle(self, *args, **options): projects = Project.objects.all() for project in projects: try: calculateProject( project ) except: logger.error("Could not calculate project %s" % project.slug)
def handle(self, *args, **options): projects = Project.objects.filter(active=True) for project in projects: try: calculateProject( project ) except: logger.error("Could not calculate project %s" % project.slug)
def handle(self, *args, **options): projects = Project.objects.all() for project in projects: calculateProject( project )
def handle(self, *args, **options): projects = Project.objects.all() for project in projects: calculateProject(project)