tcms.rpc.api.forms package

class tcms.rpc.api.forms.DateTimeField(*, input_formats=None, **kwargs)[source]

Bases: DateTimeField

default_error_messages = {'invalid': 'Invalid date format. Expected YYYY-MM-DD [HH:MM:SS].'}
input_formats = ['%Y-%m-%d', '%Y-%m-%d %H:%M:%S']
class tcms.rpc.api.forms.UpdateModelFormMixin(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: object

Overrides ModelForm fields so that none of them are required. To be used in ModelForms for API .update() methods!


In multiple inheritance method resolution order matters! This needs to be the 1st base class!