pki.forms.devids

Django forms for DevID registration and management.

Module Contents

class pki.forms.devids.DevIdAddMethodSelectForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=ErrorList, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None, bound_field_class=None)[source]

Bases: django.forms.Form

Form for selecting the method to add an DevID Onboarding Pattern.

method_select[source]

A dropdown to select the method for adding an Issuing CA. - import_truststore: Import a new truststore prior to configuring a new pattern. - configure_pattern: Use an existing truststore to define a new pattern.

Type:

ChoiceField

method_select[source]
class pki.forms.devids.DevIdRegistrationForm[source]

Bases: django.forms.ModelForm[pki.models.DevIdRegistration]

Form to create a new DevIdRegistration.

class Meta[source]
model[source]
fields: ClassVar[list[str]] = ['unique_name', 'truststore', 'domain', 'serial_number_pattern'][source]
widgets: ClassVar[dict[str, Any]][source]
labels: ClassVar[dict[str, str]][source]
unique_name[source]
clean()[source]

Cleans and validates the form data.

Ensures the unique name is not already used if provided.

Raises:

ValidationError – If the unique name is not unique.

Return type:

None