tcms.core.forms.fields module

class tcms.core.forms.fields.StripURLField(**kwargs)[source]

Bases: django.forms.fields.URLField

to_python(value)[source]

Return a string.

class tcms.core.forms.fields.UserField(*, max_length=None, min_length=None, strip=True, empty_value='', **kwargs)[source]

Bases: django.forms.fields.CharField

Custom field type. Will eventually support user selection

clean(value)[source]

Form-validation: accept a string/integer. Looks at both email address and real name.