We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d251692 commit 7c033d3Copy full SHA for 7c033d3
1 file changed
ietf/group/views_edit.py
@@ -137,7 +137,7 @@ def clean(self):
137
cleaned_data = super(GroupForm, self).clean()
138
state = cleaned_data.get('state', None)
139
parent = cleaned_data.get('parent', None)
140
- if state.slug in ['bof', ] and not parent:
+ if state and (state.slug in ['bof', ] and not parent):
141
raise forms.ValidationError("You requested the creation of a BoF, but specified no parent area. A parent is required when creating a bof.")
142
return cleaned_data
143
0 commit comments