tcms.testcases.admin module

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

Bases: django.contrib.admin.options.ModelAdmin

fieldsets = [('', {'fields': ('name', 'description', 'url_reg_exp', 'validate_reg_exp')}), ('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>'})]
form

alias of BugSystemAdminForm

list_display = ('id', 'name', 'url_reg_exp')
media
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: django.forms.models.ModelForm

class Meta[source]

Bases: object

fields = '__all__'
model

alias of tcms.testcases.models.BugSystem

base_fields = {'api_password': <django.forms.fields.CharField object at 0x7fdf99e1f3c8>, 'api_url': <django.forms.fields.CharField object at 0x7fdf99e0c3c8>, 'api_username': <django.forms.fields.CharField object at 0x7fdf99e0c588>, 'base_url': <django.forms.fields.CharField object at 0x7fdf99e0c278>, 'description': <django.forms.fields.CharField object at 0x7fdf99e1fd68>, 'name': <django.forms.fields.CharField object at 0x7fdf99e1fba8>, 'tracker_type': <tcms.testcases.admin.IssueTrackerTypeField object at 0x7fdf99e1f390>, 'url_reg_exp': <django.forms.fields.CharField object at 0x7fdf99e1fe10>, 'validate_reg_exp': <django.forms.fields.CharField object at 0x7fdf99e1ff60>}
declared_fields = {'api_password': <django.forms.fields.CharField object at 0x7fdf99e1f3c8>, 'tracker_type': <tcms.testcases.admin.IssueTrackerTypeField object at 0x7fdf99e1f390>}
media
class tcms.testcases.admin.CategoryAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

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

Bases: django.forms.fields.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: django.forms.widgets.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.

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

Bases: tcms.core.history.ReadOnlyHistoryAdmin

actions = ['delete_selected']
add_view(request, form_url='', extra_context=None)[source]
change_view(request, object_id, form_url='', extra_context=None)[source]
media