Skip to content

Commit

Permalink
Merge pull request #1100 from xzzy/master2
Browse files Browse the repository at this point in the history
Add staff phone numbers to admin ui
  • Loading branch information
xzzy authored Oct 21, 2024
2 parents 6513a93 + 83f6d91 commit 1a3af67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ledger/accounts/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class EmailUserAdmin(UserAdmin):
)
fieldsets = (
(None, {'fields': ('email',)}),
('Personal info', {'fields': ('first_name', 'last_name','legal_first_name', 'legal_last_name','position_title', 'dob','legal_dob', 'identification','identification2','senior_card','senior_card2','title','character_flagged', 'character_comments','manager_name','manager_email', 'phone_number', 'mobile_number','residential_address','postal_address','postal_same_as_residential','billing_address','billing_same_as_residential')}),
('Personal info', {'fields': ('first_name', 'last_name','legal_first_name', 'legal_last_name','position_title', 'dob','legal_dob', 'identification','identification2','senior_card','senior_card2','title','character_flagged', 'character_comments','manager_name','manager_email', 'phone_number', 'mobile_number','staff_phone_number', 'staff_mobile_number','residential_address','postal_address','postal_same_as_residential','billing_address','billing_same_as_residential')}),
('Permissions', {'fields': (
'is_active', 'is_staff', 'is_superuser', 'groups')}),
('Important dates', {'fields': ('last_login', 'date_joined')}),
Expand All @@ -52,7 +52,7 @@ class EmailUserAdmin(UserAdmin):
list_display = ('email', 'first_name', 'last_name', 'is_staff', 'is_dummy')
ordering = ('email',)
search_fields = ('email', 'first_name', 'last_name', 'email')
readonly_fields = ('dummy_email','phone_number', 'mobile_number', 'position_title','manager_email','manager_name','residential_address','postal_address','billing_address','legal_first_name','legal_last_name','legal_dob')
readonly_fields = ('dummy_email','phone_number', 'mobile_number', 'staff_phone_number', 'staff_mobile_number','position_title','manager_email','manager_name','residential_address','postal_address','billing_address','legal_first_name','legal_last_name','legal_dob')

def is_dummy(self, o):
return o.is_dummy_user
Expand Down

0 comments on commit 1a3af67

Please sign in to comment.