Skip to content

Commit a7acf05

Browse files
committed
Enforce requirement of email field on member invite
1 parent dbdf3e5 commit a7acf05

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sentry/web/forms/invite_organization_member.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010

1111
class InviteOrganizationMemberForm(forms.ModelForm):
12+
# override this to ensure the field is required
13+
email = forms.EmailField()
14+
1215
class Meta:
1316
fields = ('email', 'role')
1417
model = OrganizationMember

0 commit comments

Comments
 (0)