diff --git a/notifications/serializers/notifications.py b/notifications/serializers/notifications.py index 54f3d65..e13d3f1 100644 --- a/notifications/serializers/notifications.py +++ b/notifications/serializers/notifications.py @@ -13,6 +13,7 @@ class SystemMsgSubscriptionSerializer(BaseModelSerializer): + ignore_field_permission = True receive_backends = serializers.ListField(child=serializers.CharField()) message_type_label = serializers.CharField(read_only=True) receivers = BasePrimaryKeyRelatedField(attrs=['pk', 'username', 'nickname'], read_only=True, source='users', @@ -32,6 +33,7 @@ class SystemMsgSubscriptionByCategorySerializer(serializers.Serializer): class UserMsgSubscriptionSerializer(BaseModelSerializer): + ignore_field_permission = True receive_backends = serializers.ListField(child=serializers.CharField()) message_type_label = serializers.CharField(read_only=True, label=_("Message Type")) receivers = BasePrimaryKeyRelatedField(attrs=['pk', 'username', 'nickname'], read_only=True, label=_("User"),