Skip to content

Commit

Permalink
chore(economy): improve soci ranked admin
Browse files Browse the repository at this point in the history
  • Loading branch information
alexaor committed Oct 26, 2024
1 parent 7fa817e commit b91b7fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion economy/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ class ProductGhostOrderAdmin(admin.ModelAdmin):
@admin.register(SociRankedSeason)
class SociRankedSeasonAdmin(admin.ModelAdmin):
list_display = ["id", "participants", "season_start_date", "season_end_date"]

filter_horizontal = ("participants",)

@staticmethod
def participants(soci_ranked_season: SociRankedSeason):
return soci_ranked_season.participants.count()
return soci_ranked_season.participants.all().count()

0 comments on commit b91b7fe

Please sign in to comment.