Skip to content

Commit

Permalink
Limit stats to max of 4
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhowbrook committed Dec 13, 2023
1 parent e7ca9c7 commit 225a21f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1,677 deletions.
2 changes: 1 addition & 1 deletion network-api/networkapi/mozfest/customblocks/stats_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class StatisticCard(blocks.StructBlock):


class MozfestStatisticsBlock(blocks.StructBlock):
statistics = blocks.ListBlock(StatisticCard(), help_text="Please use a minimum of 2 cards.")
statistics = blocks.ListBlock(StatisticCard(), help_text="Please use a minimum of 2 cards.", max_num=4)

class Meta:
icon = "placeholder"
Expand Down
Loading

0 comments on commit 225a21f

Please sign in to comment.