Skip to content

Commit 5c83942

Browse files
committed
do not show album hitcount in album list view until we can get it performant
1 parent 6c19e9d commit 5c83942

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/albums/tables.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class AlbumTable(tables.Table):
1818

1919
# only shown on xl and up
2020
active_memberships = BPColumn(bp="xl", verbose_name="Files", orderable=False)
21-
hitcount = BPColumn(bp="xl", verbose_name="Hits", orderable=False)
2221

2322
class Meta:
2423
"""Define model, template, fields."""
@@ -31,5 +30,4 @@ class Meta:
3130
"description",
3231
"owner",
3332
"active_memberships",
34-
"hitcount",
3533
)

src/albums/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class AlbumListView(SingleTableMixin, FilterView):
4848

4949
def get_queryset(self) -> models.QuerySet[Album]:
5050
"""Use bmanager to get rich album objects."""
51-
return Album.bmanager.annotate_memberships().annotate_hitcount().all()
51+
return Album.bmanager.annotate_memberships().all()
5252

5353

5454
class AlbumDetailView(SingleTableMixin, FilterView):

0 commit comments

Comments
 (0)