From 4a2e4c1d9b3c8f2216bd06fb4395db8df66ed217 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Sun, 9 Feb 2025 13:55:08 +0100 Subject: [PATCH] personal: Rearrange Contact Model Admin Use FieldsPanels insinde a single MutiFieldPanel, because this is a bit compacter. Rearrange order. Intentionally skip "status" for now as the usage is not yet clear and no choices are defined. --- mpicms/personal/models.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/mpicms/personal/models.py b/mpicms/personal/models.py index 93aee8a..e3fed00 100644 --- a/mpicms/personal/models.py +++ b/mpicms/personal/models.py @@ -115,15 +115,14 @@ class Contact(index.Indexed, models.Model): FieldPanel('first_name'), FieldPanel('last_name'), FieldPanel('academic_suffix'), - ], heading='Name'), - FieldPanel('status'), - FieldPanel('groups'), - FieldPanel('positions'), - FieldPanel('special_functions'), - FieldPanel('email'), - FieldPanel('phone'), - FieldPanel('room'), - FieldPanel('is_active'), + FieldPanel('is_active'), + FieldPanel('email'), + FieldPanel('phone'), + FieldPanel('room'), + FieldPanel('groups'), + FieldPanel('positions'), + FieldPanel('special_functions'), + ]), ] search_fields = [