File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -464,13 +464,10 @@ class JournalEntryFilterForm(NetBoxModelFilterSetForm):
464
464
required = False ,
465
465
label = _ ('User' )
466
466
)
467
- assigned_object_type_id = DynamicModelMultipleChoiceField (
468
- queryset = ObjectType .objects .all ( ),
467
+ assigned_object_type_id = ContentTypeMultipleChoiceField (
468
+ queryset = ObjectType .objects .with_feature ( 'journaling' ),
469
469
required = False ,
470
470
label = _ ('Object Type' ),
471
- widget = APISelectMultiple (
472
- api_url = '/api/extras/content-types/' ,
473
- )
474
471
)
475
472
kind = forms .ChoiceField (
476
473
label = _ ('Kind' ),
@@ -507,11 +504,8 @@ class ObjectChangeFilterForm(SavedFiltersMixin, FilterForm):
507
504
required = False ,
508
505
label = _ ('User' )
509
506
)
510
- changed_object_type_id = DynamicModelMultipleChoiceField (
511
- queryset = ObjectType .objects .all ( ),
507
+ changed_object_type_id = ContentTypeMultipleChoiceField (
508
+ queryset = ObjectType .objects .with_feature ( 'change_logging' ),
512
509
required = False ,
513
510
label = _ ('Object Type' ),
514
- widget = APISelectMultiple (
515
- api_url = '/api/extras/content-types/' ,
516
- )
517
511
)
You can’t perform that action at this time.
0 commit comments