Skip to content

Commit

Permalink
- reorganized user admin fields
Browse files Browse the repository at this point in the history
  • Loading branch information
rptmat57 committed Dec 12, 2022
1 parent 95ba580 commit 743a648
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions NEMO/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,19 @@ class UserAdmin(admin.ModelAdmin):
fieldsets = (
(
"Personal information",
{"fields": ("first_name", "last_name", "username", "email", "badge_number", "type", "domain", "notes")},
{
"fields": (
"first_name",
"last_name",
"username",
"email",
"badge_number",
"type",
"domain",
"discipline",
"notes"
)
},
),
(
"Permissions",
Expand All @@ -954,8 +966,8 @@ class UserAdmin(admin.ModelAdmin):
"is_user_office",
"is_accounting_officer",
"is_service_personnel",
"is_facility_manager",
"is_technician",
"is_facility_manager",
"is_superuser",
"training_required",
"groups",
Expand All @@ -981,7 +993,6 @@ class UserAdmin(admin.ModelAdmin):
"Other information",
{
"fields": (
"discipline",
"onboarding_phases",
"safety_trainings",
)
Expand Down

0 comments on commit 743a648

Please sign in to comment.