diff --git a/apps/perms/api/application/application_permission.py b/apps/perms/api/application/application_permission.py index a97665d53..9c3eb18b4 100644 --- a/apps/perms/api/application/application_permission.py +++ b/apps/perms/api/application/application_permission.py @@ -16,6 +16,7 @@ class ApplicationPermissionViewSet(BasePermissionViewSet): 'name': ['exact'], 'category': ['exact'], 'type': ['exact', 'in'], + 'from_ticket': ['exact'] } search_fields = ['name', 'category', 'type'] custom_filter_fields = BasePermissionViewSet.custom_filter_fields + [ diff --git a/apps/perms/filters.py b/apps/perms/filters.py index adf4c8404..f56927436 100644 --- a/apps/perms/filters.py +++ b/apps/perms/filters.py @@ -21,8 +21,8 @@ class PermissionBaseFilter(BaseFilterSet): class Meta: fields = ( - 'user_id', 'username', 'system_user_id', 'system_user', 'user_group_id', - 'user_group', 'name', 'all', 'is_valid', + 'user_id', 'username', 'system_user_id', 'system_user', + 'user_group_id', 'user_group', 'name', 'all', 'is_valid', ) @property @@ -118,7 +118,7 @@ class AssetPermissionFilter(PermissionBaseFilter): fields = ( 'user_id', 'username', 'system_user_id', 'system_user', 'user_group_id', 'user_group', 'node_id', 'node', 'asset_id', 'hostname', 'ip', 'name', - 'all', 'asset_id', 'is_valid', 'is_effective', + 'all', 'asset_id', 'is_valid', 'is_effective', 'from_ticket' ) @property