Skip to content
Snippets Groups Projects
Commit 029f0a52 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Require a contact to be selected when creating a notification

This was a known requirement, but got flubbed when a few changes
were made recently.
parent 2dc244ab
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ class BaseNotificationForm(forms.ModelForm):
(essentially an abstract model)
"""
contacts = ContactMultipleChoiceField(queryset=Contact.objects.all(),
required=False, widget=forms.widgets.SelectMultiple(attrs={'size': 6}))
required=True, widget=forms.widgets.SelectMultiple(attrs={'size': 6}))
class Meta:
model = Notification
fields = ['description'] # dummy placeholder
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment