Skip to content

Commit 60226b1

Browse files
DidayoloIdirLISN
authored andcommitted
Fix show counts in Django admin
1 parent 1307fc7 commit 60226b1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/apps/competitions/admin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ def choices(self, changelist):
2525
)
2626
yield all_choice
2727

28+
def get_facet_counts(self, pk_attname, filtered_qs):
29+
# Text-input filters have no predefined choices to count (Django 5.0+ facets).
30+
return {}
31+
2832

2933
class SubmissionsCountFilter(InputFilter):
3034
# Human-readable title which will be displayed in the

0 commit comments

Comments
 (0)