Skip to content

Commit

Permalink
Properly invalidate template caches in moderation
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont committed Oct 7, 2024
1 parent 7d406e8 commit 82ee458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sounds/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ def invalidate_template_caches(self):
for is_explicit in [True, False]:
invalidate_template_cache("display_sound", self.id, is_authenticated, is_explicit)

for player_size in ['small', 'middle', 'big_no_info', 'small_no_info', 'minimal']:
for player_size in ['small', 'middle', 'big_no_info', 'small_no_info', 'minimal', 'moderation']:
for is_authenticated in [True, False]:
invalidate_template_cache("bw_display_sound", self.id, player_size, is_authenticated)

Expand Down

0 comments on commit 82ee458

Please sign in to comment.