From 2adb14e838d9692be79ddd8e2fa214724eee0a48 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Fri, 23 Dec 2016 10:46:15 -0500 Subject: [PATCH] minetest: Restrict max players between 1 and 100 --- plinth/modules/minetest/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plinth/modules/minetest/forms.py b/plinth/modules/minetest/forms.py index e3f03c794..0e491a9d5 100644 --- a/plinth/modules/minetest/forms.py +++ b/plinth/modules/minetest/forms.py @@ -30,6 +30,8 @@ class MinetestForm(ServiceForm): max_players = forms.IntegerField( label=_('Maximum number of players'), required=True, + min_value=1, + max_value=100, help_text=_('You can change the maximum number of players playing \ minetest at a single instance of time'))