12589 fix objectpermissionform

This commit is contained in:
Arthur 2023-06-12 15:53:09 -07:00
parent cc7f7687c4
commit 281aa92322

View File

@ -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)