Skip to content

Commit

Permalink
rules: fix filtering on user actions rest api
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicold authored and regit committed Aug 9, 2023
1 parent f38eab7 commit 006b537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1926,7 +1926,7 @@ class UserActionViewSet(SciriusReadOnlyModelViewSet):
serializer_class = UserActionSerializer
ordering = ('-pk',)
ordering_fields = ('pk', 'date', 'username', 'action_type', 'client_ip')
filter_class = UserActionFilter
filterset_class = UserActionFilter
filter_backends = (filters.DjangoFilterBackend, UserActionDateOrderingFilter)
permission_classes = [IsAuthenticated]

Expand Down

0 comments on commit 006b537

Please sign in to comment.