fix: Error in updating message subscription 500

pull/16134/head
wangruidong 2025-10-11 14:43:44 +08:00 committed by 老广
parent f82f31876a
commit 2e847bc2bc
1 changed files with 1 additions and 0 deletions

View File

@ -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,