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

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

src/m/o/moztrap-HEAD/moztrap/view/manage/cases/views.py   moztrap(Download)
def case_id_redirect(request, case_id):
    """Given case ID redirect to latest version in manage list."""
    cv = get_object_or_404(
        model.CaseVersion.objects.all(), case=case_id, latest=True)
    return HttpResponseRedirect(

src/m/o/moztrap-HEAD/tests/view/manage/cases/test_views.py   moztrap(Download)
 
        from moztrap.model import CaseVersion
        cv1, cv2 = list(CaseVersion.objects.all())
 
        self.assertEqual(cv1.case.product, pv.product)