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/q/u/qualitio-HEAD/qualitio/require/filter.py   qualitio(Download)
        if value == True:
            # show all requirements that ARE related to any testcase
            qs = Q(testcase__in=TestCase.objects.filter(requirement__isnull=False))
        elif value == False:
            # show all requirements that AREN'T related to any testcase
    def construct_Q(self):
        value = self.cleaned_data['q']
 
        if value == True:
            qs = Q(testcase__in=TestCase.objects.filter(requirement__isnull=False, steps__isnull=False))
        elif value == False:
            qs = Q(testcase__in=TestCase.objects.filter(requirement__isnull=False, steps__isnull=True))