|
|
|
@ -19,7 +19,8 @@ class CustomUserAdmin(UserAdmin): |
|
|
|
form = CustomUserChangeForm |
|
|
|
form = CustomUserChangeForm |
|
|
|
add_form = CustomUserCreationForm |
|
|
|
add_form = CustomUserCreationForm |
|
|
|
model = CustomUser |
|
|
|
model = CustomUser |
|
|
|
list_display = ['email', 'username', 'is_active', 'is_staff', 'first_name', 'last_name', 'date_joined', 'event_count', 'latest_event_club_name'] |
|
|
|
list_display = ['email', 'username', 'is_active', 'is_staff', 'first_name', 'last_name', 'date_joined', 'event_count', 'latest_event_club_name', 'origin'] |
|
|
|
|
|
|
|
list_filter = ['is_active', 'origin'] |
|
|
|
ordering = ['-date_joined'] |
|
|
|
ordering = ['-date_joined'] |
|
|
|
fieldsets = [ |
|
|
|
fieldsets = [ |
|
|
|
(None, {'fields': ['id', 'username', 'email', 'password', 'first_name', 'last_name', 'is_active', |
|
|
|
(None, {'fields': ['id', 'username', 'email', 'password', 'first_name', 'last_name', 'is_active', |
|
|
|
@ -27,7 +28,7 @@ class CustomUserAdmin(UserAdmin): |
|
|
|
'summons_message_body', 'summons_message_signature', 'summons_available_payment_methods', |
|
|
|
'summons_message_body', 'summons_message_signature', 'summons_available_payment_methods', |
|
|
|
'summons_display_format', 'summons_display_entry_fee', 'summons_use_full_custom_message', |
|
|
|
'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', |
|
|
|
'match_formats_default_duration', 'bracket_match_format_preference', 'group_stage_match_format_preference', |
|
|
|
'loser_bracket_match_format_preference', 'device_id', 'loser_bracket_mode', 'groups' |
|
|
|
'loser_bracket_match_format_preference', 'device_id', 'loser_bracket_mode', 'groups', 'origin' |
|
|
|
]}), |
|
|
|
]}), |
|
|
|
] |
|
|
|
] |
|
|
|
add_fieldsets = [ |
|
|
|
add_fieldsets = [ |
|
|
|
@ -49,14 +50,17 @@ class TournamentAdmin(admin.ModelAdmin): |
|
|
|
list_display = ['display_name', 'event', 'is_private', 'start_date', 'payment', 'creator'] |
|
|
|
list_display = ['display_name', 'event', 'is_private', 'start_date', 'payment', 'creator'] |
|
|
|
list_filter = ['is_deleted', 'event__creator'] |
|
|
|
list_filter = ['is_deleted', 'event__creator'] |
|
|
|
ordering = ['-start_date'] |
|
|
|
ordering = ['-start_date'] |
|
|
|
|
|
|
|
search_fields = ['id'] |
|
|
|
|
|
|
|
|
|
|
|
class TeamRegistrationAdmin(admin.ModelAdmin): |
|
|
|
class TeamRegistrationAdmin(admin.ModelAdmin): |
|
|
|
list_display = ['player_names', 'group_stage_position', 'name', 'tournament'] |
|
|
|
list_display = ['player_names', 'group_stage_position', 'name', 'tournament'] |
|
|
|
list_filter = [SimpleTournamentListFilter] |
|
|
|
list_filter = [SimpleTournamentListFilter] |
|
|
|
|
|
|
|
search_fields = ['id'] |
|
|
|
|
|
|
|
|
|
|
|
class TeamScoreAdmin(admin.ModelAdmin): |
|
|
|
class TeamScoreAdmin(admin.ModelAdmin): |
|
|
|
list_display = ['team_registration', 'score', 'walk_out', 'match'] |
|
|
|
list_display = ['team_registration', 'score', 'walk_out', 'match'] |
|
|
|
list_filter = [TeamScoreTournamentListFilter] |
|
|
|
list_filter = [TeamScoreTournamentListFilter] |
|
|
|
|
|
|
|
search_fields = ['id'] |
|
|
|
|
|
|
|
|
|
|
|
class RoundAdmin(admin.ModelAdmin): |
|
|
|
class RoundAdmin(admin.ModelAdmin): |
|
|
|
list_display = ['tournament', 'name', 'index', 'parent'] |
|
|
|
list_display = ['tournament', 'name', 'index', 'parent'] |
|
|
|
|