|
|
|
|
@ -53,10 +53,10 @@ class CustomUserAdmin(UserAdmin): |
|
|
|
|
super().save_model(request, obj, form, change) |
|
|
|
|
|
|
|
|
|
class EventAdmin(SyncedObjectAdmin): |
|
|
|
|
list_display = ['creation_date', 'name', 'club', 'creator', 'creator_full_name', 'tenup_id', 'display_images'] |
|
|
|
|
list_display = ['creation_date', 'name', 'club', 'creator', 'tenup_id', 'display_images'] |
|
|
|
|
list_filter = ['creator', 'club', 'tenup_id'] |
|
|
|
|
search_fields = ['name', 'club__name', 'creator__email'] |
|
|
|
|
raw_id_fields = ['creator', 'club'] |
|
|
|
|
raw_id_fields = ['related_user', 'creator', 'club'] |
|
|
|
|
ordering = ['-creation_date'] |
|
|
|
|
readonly_fields = ['display_images_preview'] |
|
|
|
|
|
|
|
|
|
@ -93,6 +93,7 @@ class TournamentAdmin(SyncedObjectAdmin): |
|
|
|
|
list_filter = [StartDateRangeFilter, 'is_deleted', 'event__creator'] |
|
|
|
|
ordering = ['-start_date'] |
|
|
|
|
search_fields = ['id', 'federal_level_category'] |
|
|
|
|
raw_id_fields = ['last_updated_by', 'event'] |
|
|
|
|
|
|
|
|
|
def dashboard_view(self, request): |
|
|
|
|
"""Tournament dashboard view with comprehensive statistics""" |
|
|
|
|
|