|
|
|
|
@ -25,14 +25,17 @@ class CustomUserAdmin(UserAdmin): |
|
|
|
|
list_filter = ['is_active', 'origin'] |
|
|
|
|
ordering = ['-date_joined'] |
|
|
|
|
fieldsets = [ |
|
|
|
|
(None, {'fields': ['id', 'username', 'email', 'password', 'first_name', 'last_name', 'is_active', 'registration_payment_mode', |
|
|
|
|
'clubs', 'country', 'phone', 'licence_id', 'umpire_code', |
|
|
|
|
(None, {'fields': ['id', 'username', 'email', 'password', 'first_name', 'last_name', 'is_active']}), |
|
|
|
|
('Permissions', {'fields': ['is_staff', 'is_superuser', 'groups', 'user_permissions']}), |
|
|
|
|
('Personal Info', {'fields': ['registration_payment_mode', 'clubs', 'country', 'phone', 'licence_id', 'umpire_code']}), |
|
|
|
|
('Tournament Settings', {'fields': [ |
|
|
|
|
'summons_message_body', 'summons_message_signature', 'summons_available_payment_methods', |
|
|
|
|
'summons_display_format', 'summons_display_entry_fee', 'summons_use_full_custom_message', |
|
|
|
|
'match_formats_default_duration', 'bracket_match_format_preference', 'group_stage_match_format_preference', |
|
|
|
|
'loser_bracket_match_format_preference', 'device_id', 'loser_bracket_mode', 'groups', 'origin', 'agents', 'should_synchronize' |
|
|
|
|
'loser_bracket_match_format_preference', 'device_id', 'loser_bracket_mode', 'origin', 'agents', 'should_synchronize' |
|
|
|
|
]}), |
|
|
|
|
] |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
add_fieldsets = [ |
|
|
|
|
( |
|
|
|
|
None, |
|
|
|
|
|