tcms.testcases.admin module

class tcms.testcases.admin.BugSystemAdmin(model, admin_site)[source]

Bases: ModelAdmin

fieldsets = [('', {'fields': ('name',)}), ('External Issue Tracker Integration', {'fields': ('tracker_type', 'base_url', 'api_url', 'api_username', 'api_password'), 'description': '<h1>Warning: read the\n<a href="http://kiwitcms.readthedocs.io/en/latest/admin.html#configure-external-bug-trackers">\nConfigure external bug trackers</a> section before editting the values below!</h1>'}), ('Configuration health check', {'fields': ('hc_bug_url',), 'description': 'Kiwi TCMS will try fetching details for the given bug URL using the integration defined above! Click the `Save and continue` button and watch out for messages at the top of the screen. <strong>WARNING:</strong> in case of failures some issue trackers will fall back to fetching details via the OpenGraph protocol. In that case the result will include field named `from_open_graph`.'})]
form

alias of BugSystemAdminForm

list_display = ('id', 'name', 'base_url')
property media
save_model(request, obj, form, change)[source]

Given a model instance save it to the database.

search_fields = ('name',)
class tcms.testcases.admin.BugSystemAdminForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]

Bases: ModelForm

class Meta[source]

Bases: object

fields = '__all__'
model

alias of BugSystem

base_fields = {'api_password': <django.forms.fields.CharField object>, 'api_url': <django.forms.fields.CharField object>, 'api_username': <django.forms.fields.CharField object>, 'base_url': <django.forms.fields.CharField object>, 'hc_bug_url': <django.forms.fields.CharField object>, 'name': <django.forms.fields.CharField object>, 'tracker_type': <tcms.testcases.admin.IssueTrackerTypeField object>}
declared_fields = {'api_password': <django.forms.fields.CharField object>, 'hc_bug_url': <django.forms.fields.CharField object>, 'tracker_type': <tcms.testcases.admin.IssueTrackerTypeField object>}
property media

Return all media required to render the widgets on this form.

class tcms.testcases.admin.CategoryAdmin(model, admin_site)[source]

Bases: ModelAdmin

list_display = ('id', 'name', 'product', 'description')
list_filter = ('product',)
property media
search_fields = ('name',)
class tcms.testcases.admin.IssueTrackerTypeField(*, choices=(), **kwargs)[source]

Bases: ChoiceField

Special choice field which uses the widget above

valid_value(value)[source]

Check to see if the provided value is a valid choice.

widget

alias of IssueTrackerTypeSelectWidget

class tcms.testcases.admin.IssueTrackerTypeSelectWidget(attrs=None, choices=())[source]

Bases: Select

A select widget which displays the names of all classes derived from IssueTrackerType. Skip IssueTrackerType because it is doesn’t provide implementations for most of its methods.

property choices
property media
class tcms.testcases.admin.TemplateAdmin(model, admin_site)[source]

Bases: ModelAdmin

form

alias of TemplateAdminForm

property media
class tcms.testcases.admin.TemplateAdminForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]

Bases: ModelForm

class Media[source]

Bases: object

js = ['js/bundle.js']
class Meta[source]

Bases: object

fields = '__all__'
model

alias of Template

base_fields = {'name': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>}
declared_fields = {'text': <django.forms.fields.CharField object>}
property media

Return all media required to render the widgets on this form.

class tcms.testcases.admin.TestCaseAdmin(model, admin_site)[source]

Bases: ObjectPermissionsAdminMixin, ReadOnlyHistoryAdmin

add_view(request, form_url='', extra_context=None)[source]
change_view(request, object_id, form_url='', extra_context=None)[source]
property media
class tcms.testcases.admin.TestCaseStatusAdmin(model, admin_site)[source]

Bases: ModelAdmin

delete_view(request, object_id, extra_context=None)[source]
fieldsets = [('', {'fields': ('name', 'description', 'is_confirmed'), 'description': '<h1>For more information about customizing test case statuses see\n        <a href="https://kiwitcms.readthedocs.io/en/latest/admin.html#test-case-statuses">\n        the documentation</a>!</h1>'})]
list_display = ('id', 'name', 'is_confirmed')
property media
ordering = ['-is_confirmed', 'id']