Skip to content

Commit

Permalink
Update num sounds displayed in pack page
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont committed Nov 28, 2023
1 parent 10bb174 commit 59ae5a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sounds/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ def pack(request, username, pack_id):
return render(request, 'sounds/pack_deleted.html')

qs = Sound.public.only('id').filter(pack=pack).order_by('-created')
num_sounds_to_display = 12
num_sounds_to_display = settings.SOUNDS_PER_PAGE
sound_ids = [sound_obj.id for sound_obj in qs[0:num_sounds_to_display]]
pack_sounds = Sound.objects.ordered_ids(sound_ids)

Expand Down

0 comments on commit 59ae5a9

Please sign in to comment.