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

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

src/m/o/moztrap-HEAD/moztrap/view/manage/suites/views.py   moztrap(Download)
 
from moztrap import model
from moztrap.model.mtmodel import NotDeletedCount
from moztrap.view.filters import SuiteFilterSet
from moztrap.view.lists import decorators as lists
        {
            "suites": model.Suite.objects.select_related().annotate(
                case_count=NotDeletedCount("cases", distinct=True)),
            }
        )

src/m/o/moztrap-HEAD/moztrap/view/manage/runs/views.py   moztrap(Download)
 
from moztrap import model
from moztrap.model.mtmodel import NotDeletedCount
 
from moztrap.view.filters import RunFilterSet
        {
            "runs": model.Run.objects.select_related().annotate(
                suite_count=NotDeletedCount("suites", distinct=True)),
            }
        )

src/m/o/moztrap-HEAD/tests/model/test_mtmodel.py   moztrap(Download)
    def NotDeletedCount(self):
        """The aggregate class under test."""
        from moztrap.model.mtmodel import NotDeletedCount
        return NotDeletedCount