We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2c4e7b commit e986798Copy full SHA for e986798
tasks/forms.py
@@ -50,7 +50,7 @@ def clean(self):
50
51
# If this is a subtask,
52
# then there should be only one responsible person.
53
- if 'responsible' in self.changed_data and 'task' in self.cleaned_data:
+ if 'responsible' in self.changed_data and self.cleaned_data.get('task', None):
54
if 'responsible' in self.cleaned_data:
55
responsible_num = len(self.cleaned_data.get('responsible'))
56
if responsible_num > 1:
0 commit comments