def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context['statues'] = TestCaseStatus.objects.all() context['priorities'] = Priority.objects.filter(is_active=True) context['comment_form'] = SimpleCommentForm() context['testcasestatus_confirmed'] = TestCaseStatus.get_confirmed() return context
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context["statuses"] = TestCaseStatus.objects.all() context["priorities"] = Priority.objects.filter(is_active=True) context["comment_form"] = SimpleCommentForm() context["test_runs"] = TestRun.objects.filter( plan_id=self.object.pk, stop_date__isnull=True).order_by("-id")[:5] return context
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context["execution_statuses"] = TestExecutionStatus.objects.order_by( "-weight", "name") context["confirmed_statuses"] = TestCaseStatus.objects.filter( is_confirmed=True) context["link_form"] = LinkReferenceForm() context["bug_trackers"] = BugSystem.objects.all() context["comment_form"] = SimpleCommentForm() return context
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context["execution_statuses"] = TestExecutionStatus.objects.order_by( "-weight", "name" ) context["confirmed_statuses"] = TestCaseStatus.objects.filter(is_confirmed=True) context["link_form"] = LinkReferenceForm() context["bug_trackers"] = BugSystem.objects.all() context["comment_form"] = SimpleCommentForm() context["OBJECT_MENU_ITEMS"] = [ ( "...", [ ( _("Edit"), reverse("testruns-edit", args=[self.object.pk]), ), ( _("Clone"), reverse("testruns-clone", args=[self.object.pk]), ), ( _("History"), "/admin/testruns/testrun/%d/history/" % self.object.pk, ), ("-", "-"), ( _("Object permissions"), reverse( "admin:testruns_testrun_permissions", args=[self.object.pk], ), ), ("-", "-"), ( _("Delete"), reverse( "admin:testruns_testrun_delete", args=[self.object.pk], ), ), ], ) ] return context
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context["statuses"] = TestCaseStatus.objects.all() context["priorities"] = Priority.objects.filter(is_active=True) context["comment_form"] = SimpleCommentForm() context["test_runs"] = TestRun.objects.filter( plan_id=self.object.pk, stop_date__isnull=True ).order_by("-id")[:5] context["OBJECT_MENU_ITEMS"] = [ ( "...", [ (_("Edit"), reverse("plan-edit", args=[self.object.pk])), (_("Clone"), reverse("plans-clone", args=[self.object.pk])), ( _("History"), "/admin/testplans/testplan/%d/history/" % self.object.pk, ), ("-", "-"), ( _("Object permissions"), reverse( "admin:testplans_testplan_permissions", args=[self.object.pk], ), ), ("-", "-"), ( _("Delete"), reverse( "admin:testplans_testplan_delete", args=[self.object.pk], ), ), ], ) ] return context