mirror of https://github.com/jumpserver/jumpserver
fix: Error in updating message subscription 500
parent
f82f31876a
commit
2e847bc2bc
|
|
@ -44,6 +44,7 @@ class SystemMsgSubscriptionViewSet(
|
||||||
ListModelMixin, UpdateModelMixin, JMSGenericViewSet
|
ListModelMixin, UpdateModelMixin, JMSGenericViewSet
|
||||||
):
|
):
|
||||||
lookup_field = 'message_type'
|
lookup_field = 'message_type'
|
||||||
|
slug_field = lookup_field
|
||||||
queryset = SystemMsgSubscription.objects.all()
|
queryset = SystemMsgSubscription.objects.all()
|
||||||
serializer_classes = {
|
serializer_classes = {
|
||||||
'list': SystemMsgSubscriptionByCategorySerializer,
|
'list': SystemMsgSubscriptionByCategorySerializer,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue