You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
337 B

10 years ago
10 years ago
  1. from django import forms
  2. from hc.api.models import Channel
  3. class TimeoutForm(forms.Form):
  4. timeout = forms.IntegerField(min_value=60, max_value=604800)
  5. grace = forms.IntegerField(min_value=60, max_value=604800)
  6. class AddChannelForm(forms.ModelForm):
  7. class Meta:
  8. model = Channel
  9. fields = ['kind', 'value']