1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #10408: Fix validation when attempting to add redundant contact assignments

This commit is contained in:
jeremystretch
2022-09-27 13:11:57 -04:00
parent 05542324fc
commit 2d9852d6f1
3 changed files with 7 additions and 1 deletions

View File

@@ -119,8 +119,10 @@ class ContactAssignmentForm(BootstrapMixin, forms.ModelForm):
class Meta:
model = ContactAssignment
fields = (
'group', 'contact', 'role', 'priority',
'content_type', 'object_id', 'group', 'contact', 'role', 'priority',
)
widgets = {
'content_type': forms.HiddenInput(),
'object_id': forms.HiddenInput(),
'priority': StaticSelect(),
}