mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-04-05 03:45:21 +00:00
fix: Error in updating message subscription 500
This commit is contained in:
@@ -44,6 +44,7 @@ class SystemMsgSubscriptionViewSet(
|
||||
ListModelMixin, UpdateModelMixin, JMSGenericViewSet
|
||||
):
|
||||
lookup_field = 'message_type'
|
||||
slug_field = lookup_field
|
||||
queryset = SystemMsgSubscription.objects.all()
|
||||
serializer_classes = {
|
||||
'list': SystemMsgSubscriptionByCategorySerializer,
|
||||
|
||||
Reference in New Issue
Block a user