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/q/u/qualitio-HEAD/qualitio/store/views.py   qualitio(Download)
def testcase_details(request, testcase_id, **kwargs):
    return direct_to_template(request, 'store/testcase_details.html',
                              {'testcase': TestCase.objects.get(pk=testcase_id)})
 
 
@permission_required('USER')
@core.menu_view(TestCase, "edit", role='USER')
def testcase_edit(request, testcase_id, **kwargs):
    testcase = TestCase.objects.get(pk=testcase_id)
def testcase_valid(request, testcase_id=0, **kwargs):
    if testcase_id:
        testcase = TestCase.objects.get(pk=str(testcase_id))
        testcase_form = TestCaseForm(request.POST, instance=testcase)
        testcasesteps_form = TestCaseStepFormSet(request.POST, instance=testcase)
def testcase_copy(request, testcase_id, **kwargs):
    testcase = TestCase.objects.get(pk=str(testcase_id))
    testcase_copy = testcase.copy()
 
    log = history.History(request.user, testcase_copy)