@never_cache
@permission_required("library.manage_suites")
def suite_edit(request, suite_id):
    suite = get_object_or_404(model.Suite, pk=suite_id)
    if request.method == "POST":
        form = forms.EditSuiteForm(
            request.POST, instance=suite, user=request.user)
        saved_suite = form.save_if_valid()
        if saved_suite is not None:
            messages.success(request, u"Saved '{0}'.".format(saved_suite.name))
            pre_page = request.GET.get('from', "manage_suites")
            return redirect(pre_page)
    else:
        form = forms.EditSuiteForm(
            instance=suite, user=request.user)
    return TemplateResponse(
        request,
        "manage/suite/edit_suite.html",
        {
            "form": form,
            "suite": suite,
            }
        )
Run a test query against the fake database
dataset/ETHPy150Open mozilla/moztrap/moztrap/view/manage/suites/views.py/suite_edit--crossover with--dataset/ETHPy150Open uwescience/raco/raco/datalog/datalog_test.py/DatalogTestCase.execute_query