mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 16:56:10 -06:00
12589 fix objectpermissionform
This commit is contained in:
parent
cc7f7687c4
commit
281aa92322
@ -232,9 +232,10 @@ class ObjectPermissionForm(BootstrapMixin, forms.ModelForm):
|
||||
required=False,
|
||||
queryset=Group.objects.all()
|
||||
)
|
||||
object_types = ContentTypeMultipleChoiceField(
|
||||
object_types = forms.ModelMultipleChoiceField(
|
||||
queryset=ContentType.objects.all(),
|
||||
limit_choices_to=OBJECTPERMISSION_OBJECT_TYPES,
|
||||
widget=forms.SelectMultiple(attrs={'size': 6})
|
||||
)
|
||||
|
||||
can_view = forms.BooleanField(required=False)
|
||||
|
Loading…
Reference in New Issue
Block a user