Skip to content

Commit 7c033d3

Browse files
committed
Only check state.slug in GroupForm.clean() if state is set.
- Legacy-Id: 11388
1 parent d251692 commit 7c033d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/group/views_edit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def clean(self):
137137
cleaned_data = super(GroupForm, self).clean()
138138
state = cleaned_data.get('state', None)
139139
parent = cleaned_data.get('parent', None)
140-
if state.slug in ['bof', ] and not parent:
140+
if state and (state.slug in ['bof', ] and not parent):
141141
raise forms.ValidationError("You requested the creation of a BoF, but specified no parent area. A parent is required when creating a bof.")
142142
return cleaned_data
143143

0 commit comments

Comments
 (0)