form validate channel pagesize greater than 0, #334

This commit is contained in:
simon 2022-11-02 10:30:21 +07:00
parent 749261c146
commit dcf317e471
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -98,7 +98,9 @@ class ApplicationSettingsForm(forms.Form):
("1", "enable cookie"),
]
subscriptions_channel_size = forms.IntegerField(required=False)
subscriptions_channel_size = forms.IntegerField(
required=False, min_value=1
)
downloads_limit_count = forms.IntegerField(required=False)
downloads_limit_speed = forms.IntegerField(required=False)
downloads_throttledratelimit = forms.IntegerField(required=False)