tcms.bugs.forms module

class tcms.bugs.forms.BugCommentForm(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, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.forms.Form

base_fields = {'bug': <django.forms.models.ModelChoiceField object>, 'text': <django.forms.fields.CharField object>}
declared_fields = {'bug': <django.forms.models.ModelChoiceField object>, 'text': <django.forms.fields.CharField object>}
media
populate(bug_id)[source]
class tcms.bugs.forms.NewBugForm(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 = ['summary', 'assignee', 'reporter', 'product', 'version', 'build']
model

alias of tcms.bugs.models.Bug

base_fields = {'assignee': <django.forms.models.ModelChoiceField object>, 'build': <django.forms.models.ModelChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'reporter': <django.forms.models.ModelChoiceField object>, 'summary': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>, 'version': <django.forms.models.ModelChoiceField object>}
declared_fields = {'text': <django.forms.fields.CharField object>}
media
populate(product_id=None)[source]