pki.views.ca
CA views for the PKI application.
Module Contents
-
pki.views.ca.logger[source]
-
class pki.views.ca.CaTableView[source]
Bases: trustpoint.views.base.ContextDataMixin, django.views.generic.ListView[pki.models.CaModel]
Table view for all CAs with hierarchy information.
-
model[source]
-
template_name = 'pki/cas/cas.html'[source]
-
context_object_name = 'cas'[source]
-
paginate_by = None[source]
-
context_page_category = 'pki'[source]
-
context_page_name = 'cas'[source]
-
get_queryset()[source]
Return all CA models with parent relationships and domains prefetched, ordered by hierarchy.
- Return type:
django.db.models.QuerySet[pki.models.CaModel]
-
get_context_data(**kwargs)[source]
Add hierarchy information to each CA and apply hierarchical ordering.
- Parameters:
kwargs (Any)
- Return type:
dict[str, Any]
-
class pki.views.ca.CaBulkDeleteConfirmView[source]
Bases: trustpoint.views.base.BulkDeleteView
View to confirm the deletion of multiple CAs.
-
model[source]
-
success_url[source]
-
ignore_url[source]
-
template_name = 'pki/cas/confirm_delete.html'[source]
-
context_object_name = 'cas'[source]
-
get(request, *args, **kwargs)[source]
Handle GET requests.
- Parameters:
-
- Return type:
django.http.HttpResponse
-
form_valid(form)[source]
Delete the selected CAs on valid form, handling hierarchical dependencies.
- Parameters:
form (django.forms.Form)
- Return type:
django.http.HttpResponse