Company logo: changed in the edit view by clicking the logo, in a dialog of its own #853
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#853
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Move logo editing to the company's edit view: clicking the logo opens a dedicated dialog.
What exists today
templates/jobs/company_detail.html:10) and a Find/Refresh logo dialog in its header (:55-61,:70-86, posting tojobs:company_logo_action).CompanyFormdefineslogo_url,logo_uploadandremove_logo(jobs/forms.py:130-152, handled at:270-314), buttemplates/jobs/company_form.htmlnever draws them, and its form has noenctype="multipart/form-data"(:10). Upload, an address and Remove are unreachable from the interface; only tests use them (tests/test_logos.py:396-421).parentis inMeta.fieldsand not drawn either.What would change
multipart/form-data, or the dialog posts on its own tocompany_logo_action(which already has a remove path,jobs/views.py:510-531).Decisions
parent: drawn, or removed fromMeta.fields; recommended removed here and drawn where company structure is shown.Checked against
mainat8c3d03570. From the maintainer's improvements list of 2026-10-07.Fixed in
89e265040on main.Decision note: the company form now draws
parentinstead of dropping it fromMeta.fields. It was never drawn, so every save with the structure feature on cleared the company's parent; and nothing else sets it, so removing it would have left the feature with no way in. The logo fields stay onCompanyFormfor the importers and tests; the dialog posts a form of its own.