tcms.testplans.forms module

class tcms.testplans.forms.BasePlanForm(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 = {'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7ff966ccab38>, 'name': <django.forms.fields.CharField object at 0x7ff966cca4e0>, 'parent': <django.forms.fields.IntegerField object at 0x7ff966ccacc0>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff966cca908>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7ff966cca898>, 'text': <django.forms.fields.CharField object at 0x7ff966cca6a0>, 'type': <django.forms.models.ModelChoiceField object at 0x7ff966cca710>}
clean_parent()[source]
declared_fields = {'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7ff966ccab38>, 'name': <django.forms.fields.CharField object at 0x7ff966cca4e0>, 'parent': <django.forms.fields.IntegerField object at 0x7ff966ccacc0>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff966cca908>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7ff966cca898>, 'text': <django.forms.fields.CharField object at 0x7ff966cca6a0>, 'type': <django.forms.models.ModelChoiceField object at 0x7ff966cca710>}
media
populate(product_id)[source]
class tcms.testplans.forms.ClonePlanForm(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: tcms.testplans.forms.BasePlanForm

base_fields = {'copy_testcases': <django.forms.fields.BooleanField object at 0x7ff966cd5f60>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7ff966ccab38>, 'keep_case_default_tester': <django.forms.fields.BooleanField object at 0x7ff966ce2080>, 'keep_orignal_author': <django.forms.fields.BooleanField object at 0x7ff966cd5cf8>, 'link_testcases': <django.forms.fields.BooleanField object at 0x7ff966cd5d68>, 'maintain_case_orignal_author': <django.forms.fields.BooleanField object at 0x7ff966cd5fd0>, 'name': <django.forms.fields.CharField object at 0x7ff966cd5b38>, 'parent': <django.forms.fields.IntegerField object at 0x7ff966ccacc0>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff966cca908>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7ff966cca898>, 'set_parent': <django.forms.fields.BooleanField object at 0x7ff966ce20f0>, 'text': <django.forms.fields.CharField object at 0x7ff966cca6a0>, 'type': <django.forms.models.ModelChoiceField object at 0x7ff966cd5da0>}
declared_fields = {'copy_testcases': <django.forms.fields.BooleanField object at 0x7ff966cd5f60>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7ff966ccab38>, 'keep_case_default_tester': <django.forms.fields.BooleanField object at 0x7ff966ce2080>, 'keep_orignal_author': <django.forms.fields.BooleanField object at 0x7ff966cd5cf8>, 'link_testcases': <django.forms.fields.BooleanField object at 0x7ff966cd5d68>, 'maintain_case_orignal_author': <django.forms.fields.BooleanField object at 0x7ff966cd5fd0>, 'name': <django.forms.fields.CharField object at 0x7ff966cd5b38>, 'parent': <django.forms.fields.IntegerField object at 0x7ff966ccacc0>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff966cca908>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7ff966cca898>, 'set_parent': <django.forms.fields.BooleanField object at 0x7ff966ce20f0>, 'text': <django.forms.fields.CharField object at 0x7ff966cca6a0>, 'type': <django.forms.models.ModelChoiceField object at 0x7ff966cd5da0>}
media
class tcms.testplans.forms.NewPlanForm(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: tcms.testplans.forms.BasePlanForm

base_fields = {'auto_to_case_default_tester': <django.forms.fields.BooleanField object at 0x7ff966ccae10>, 'auto_to_case_owner': <django.forms.fields.BooleanField object at 0x7ff966ccada0>, 'auto_to_plan_author': <django.forms.fields.BooleanField object at 0x7ff966ccad30>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7ff966ccab38>, 'is_active': <django.forms.fields.BooleanField object at 0x7ff966ccaf60>, 'name': <django.forms.fields.CharField object at 0x7ff966cca4e0>, 'notify_on_case_update': <django.forms.fields.BooleanField object at 0x7ff966ccaef0>, 'notify_on_plan_update': <django.forms.fields.BooleanField object at 0x7ff966ccae80>, 'parent': <django.forms.fields.IntegerField object at 0x7ff966ccacc0>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff966cca908>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7ff966cca898>, 'text': <django.forms.fields.CharField object at 0x7ff966cca6a0>, 'type': <django.forms.models.ModelChoiceField object at 0x7ff966cca710>}
declared_fields = {'auto_to_case_default_tester': <django.forms.fields.BooleanField object at 0x7ff966ccae10>, 'auto_to_case_owner': <django.forms.fields.BooleanField object at 0x7ff966ccada0>, 'auto_to_plan_author': <django.forms.fields.BooleanField object at 0x7ff966ccad30>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7ff966ccab38>, 'is_active': <django.forms.fields.BooleanField object at 0x7ff966ccaf60>, 'name': <django.forms.fields.CharField object at 0x7ff966cca4e0>, 'notify_on_case_update': <django.forms.fields.BooleanField object at 0x7ff966ccaef0>, 'notify_on_plan_update': <django.forms.fields.BooleanField object at 0x7ff966ccae80>, 'parent': <django.forms.fields.IntegerField object at 0x7ff966ccacc0>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff966cca908>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7ff966cca898>, 'text': <django.forms.fields.CharField object at 0x7ff966cca6a0>, 'type': <django.forms.models.ModelChoiceField object at 0x7ff966cca710>}
media
class tcms.testplans.forms.SearchPlanForm(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 = {'author__email__startswith': <django.forms.fields.CharField object at 0x7ff966cd58d0>, 'author__username__startswith': <django.forms.fields.CharField object at 0x7ff966cd5668>, 'case__default_tester__username__startswith': <django.forms.fields.CharField object at 0x7ff966cd5978>, 'create_date__gte': <django.forms.fields.DateTimeField object at 0x7ff966cd5b70>, 'create_date__lte': <django.forms.fields.DateTimeField object at 0x7ff966cd5c18>, 'is_active': <django.forms.fields.BooleanField object at 0x7ff966cd5ac8>, 'name__icontains': <django.forms.fields.CharField object at 0x7ff966cd52e8>, 'parent__pk': <django.forms.fields.IntegerField object at 0x7ff966cd5160>, 'pk': <django.forms.fields.IntegerField object at 0x7ff966cd5048>, 'pk__in': <django.forms.fields.CharField object at 0x7ff966cd50b8>, 'plan_id': <django.forms.fields.IntegerField object at 0x7ff966cd5278>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff966cd5390>, 'search': <django.forms.fields.CharField object at 0x7ff966cd51d0>, 'tag__name__in': <django.forms.fields.CharField object at 0x7ff966cd5a20>, 'type': <django.forms.models.ModelChoiceField object at 0x7ff966cd5780>, 'version': <django.forms.models.ModelChoiceField object at 0x7ff966cd54e0>}
clean_pk__in()[source]
clean_tag__name__in()[source]
declared_fields = {'author__email__startswith': <django.forms.fields.CharField object at 0x7ff966cd58d0>, 'author__username__startswith': <django.forms.fields.CharField object at 0x7ff966cd5668>, 'case__default_tester__username__startswith': <django.forms.fields.CharField object at 0x7ff966cd5978>, 'create_date__gte': <django.forms.fields.DateTimeField object at 0x7ff966cd5b70>, 'create_date__lte': <django.forms.fields.DateTimeField object at 0x7ff966cd5c18>, 'is_active': <django.forms.fields.BooleanField object at 0x7ff966cd5ac8>, 'name__icontains': <django.forms.fields.CharField object at 0x7ff966cd52e8>, 'parent__pk': <django.forms.fields.IntegerField object at 0x7ff966cd5160>, 'pk': <django.forms.fields.IntegerField object at 0x7ff966cd5048>, 'pk__in': <django.forms.fields.CharField object at 0x7ff966cd50b8>, 'plan_id': <django.forms.fields.IntegerField object at 0x7ff966cd5278>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff966cd5390>, 'search': <django.forms.fields.CharField object at 0x7ff966cd51d0>, 'tag__name__in': <django.forms.fields.CharField object at 0x7ff966cd5a20>, 'type': <django.forms.models.ModelChoiceField object at 0x7ff966cd5780>, 'version': <django.forms.models.ModelChoiceField object at 0x7ff966cd54e0>}
media
populate(product_id=None)[source]