add timeout field to policy to prevent stuck policies

This commit is contained in:
Jens Langhammer
2019-03-21 14:48:51 +01:00
parent ae3d3d0295
commit 883d439544
3 changed files with 20 additions and 1 deletions

View File

@ -7,7 +7,7 @@ from passbook.core.models import (DebugPolicy, FieldMatcherPolicy,
GroupMembershipPolicy, PasswordPolicy,
WebhookPolicy)
GENERAL_FIELDS = ['name', 'action', 'negate', 'order', ]
GENERAL_FIELDS = ['name', 'action', 'negate', 'order', 'timeout']
class FieldMatcherPolicyForm(forms.ModelForm):
"""FieldMatcherPolicy Form"""