openwisp / openwisp/openwisp-controller
[feature:gsoc26] Update Django admin for Certificate templates
@stktyagi is already working on this.
Since May 15, 2026.
- Dominant language
- Python
- Stars
- 773
- Forks
- 315
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 14
Description
Is your feature request related to a problem? Please describe.
After extending the AbstractTemplate model to support type="cert", the Django admin interface needs to be updated to dynamically expose these new fields so administrators can actually configure them.
Describe the solution you'd like
I will update the TemplateAdmin form and logic to handle the new certificate fields:
- Show the certificate template type in the admin type dropdown.
- Show or hide the
caandblueprint_certfields based on the selected template type. - Use
raw_id_fieldsfor thecaandblueprint_certforeign keys to ensure scalability in large deployments. - Implement UI filtering using
limit_choices_toto ensure only unassigned certificates appear in theblueprint_certdropdown. - Apply organization scoping to
caandblueprint_certchoices.
Device admin visibility
The GSoC proposal test plan includes checking that certificate details are visible in the device admin. If that work is not implemented in this issue, this issue should link to the issue where that admin UI work is tracked.
Tests from the GSoC proposal
- The
Certificatetemplate type appears in the admin type dropdown. - CA selection field is shown or hidden based on template type.
- Blueprint certificate field is shown or hidden and filtered correctly.
- Certificate details are visible in the device admin, if this remains in scope for this issue.
- Selenium coverage verifies template type switching shows and hides the relevant fields.
Measurable outcomes: 7
Implementation points: 6, 7
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.