Skip to content

Commit

Permalink
personal: Rearrange Contact Model Admin
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
donald committed Feb 9, 2025
1 parent 309d22b commit 4a2e4c1
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions mpicms/personal/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 4a2e4c1

Please sign in to comment.