Source code for tcms.rpc.api.forms.management

from django import forms

from tcms.management.models import Build, Component, Product
from tcms.rpc.api.forms import UpdateModelFormMixin


[docs]class BuildForm(forms.ModelForm):
[docs] class Meta: model = Build fields = "__all__"
[docs]class BuildUpdateForm( # pylint: disable=remove-empty-class UpdateModelFormMixin, BuildForm ): pass
[docs]class ComponentForm(forms.ModelForm):
[docs] class Meta: model = Component fields = "__all__"
[docs]class ComponentUpdateForm( # pylint: disable=remove-empty-class UpdateModelFormMixin, ComponentForm ): pass
[docs]class ProductForm(forms.ModelForm):
[docs] class Meta: model = Product fields = "__all__"