feat: make people group labels editable

This commit is contained in:
mohamad
2026-10-29 04:11:36 +08:00
parent cb54e96db6
commit 9a8551ae23
8 changed files with 81 additions and 7 deletions
+10
View File
@@ -60,6 +60,16 @@ class AboutViewTest(TestCase):
response = self.client.get(reverse("pages:about"))
self.assertNotContains(response, "Nobody yet")
def test_about_role_heading_uses_shared_admin_setting(self):
section = AboutSection.objects.create(section_type=AboutSection.TYPE_PEOPLE, title="Our people")
AboutSectionItem.objects.create(section=section, title="Team lead", role="Leader")
branding = SiteBranding.load()
branding.lead_group_label = "Leadership"
branding.save(update_fields=["lead_group_label"])
response = self.client.get(reverse("pages:about"))
self.assertContains(response, "Leadership")
self.assertNotContains(response, "Lead / Leader")
class BlogViewTest(TestCase):
def setUp(self):