pki.forms.devids ================ .. py:module:: pki.forms.devids .. autoapi-nested-parse:: Django forms for DevID registration and management. Module Contents --------------- .. py:class:: 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) Bases: :py:obj:`django.forms.Form` Form for selecting the method to add an DevID Onboarding Pattern. .. attribute:: method_select 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 .. py:attribute:: method_select .. py:class:: DevIdRegistrationForm Bases: :py:obj:`django.forms.ModelForm`\ [\ :py:obj:`pki.models.DevIdRegistration`\ ] Form to create a new DevIdRegistration. .. py:class:: Meta .. py:attribute:: model .. py:attribute:: fields :type: ClassVar[list[str]] :value: ['unique_name', 'truststore', 'domain', 'serial_number_pattern'] .. py:attribute:: widgets :type: ClassVar[dict[str, Any]] .. py:attribute:: labels :type: ClassVar[dict[str, str]] .. py:attribute:: unique_name .. py:method:: clean() 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.