Skip to content

Commit

Permalink
Merge pull request #3279 from johannaengland/bugfix/limit-switch-port…
Browse files Browse the repository at this point in the history
…-activity-interval

Limit interval in switch port activity to 10000
  • Loading branch information
johannaengland authored Feb 19, 2025
2 parents 199f130 + 3da46f3 commit 905a62f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/3242.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Limit interval in switch port activity to 10000
2 changes: 1 addition & 1 deletion python/nav/web/ipdevinfo/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, *args, **kwargs):
class ActivityIntervalForm(forms.Form):
"""Form for setting an interval in switch port activity"""

interval = forms.IntegerField(label='Days', min_value=0)
interval = forms.IntegerField(label='Days', min_value=0, max_value=10000)

def __init__(self, *args, **kwargs):
super(ActivityIntervalForm, self).__init__(*args, **kwargs)
Expand Down

0 comments on commit 905a62f

Please sign in to comment.