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

Closes #4897: Allow filtering by content type identified as <app>.<model> string

This commit is contained in:
Jeremy Stretch
2020-09-22 16:06:38 -04:00
parent 5ba4252388
commit 0c3fafdfef
5 changed files with 132 additions and 7 deletions

View File

@@ -361,8 +361,8 @@ class ObjectChangeFilterForm(BootstrapMixin, forms.Form):
api_url='/api/users/users/',
)
)
changed_object_type = forms.ModelChoiceField(
queryset=ContentType.objects.order_by('model'),
changed_object_type_id = forms.ModelChoiceField(
queryset=ContentType.objects.order_by('app_label', 'model'),
required=False,
widget=ContentTypeSelect(),
label='Object Type'