Skip to content

Commit

Permalink
minor: update license
Browse files Browse the repository at this point in the history
  • Loading branch information
narasux committed Sep 1, 2023
1 parent 77b84e9 commit 8d38773
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bk-user/bkuser/apis/web/data_source/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def post(self, request, *args, **kwargs):
slz.is_valid(raise_exception=True)
data = slz.validated_data

current_user = self.request.user.username
current_user = request.user.username
ds = DataSource.objects.create(
name=data["name"],
owner_tenant_id=self.get_current_tenant_id(),
Expand Down Expand Up @@ -133,7 +133,7 @@ def put(self, request, *args, **kwargs):

data_source.plugin_config = data["plugin_config"]
data_source.field_mapping = data["field_mapping"]
data_source.updater = self.request.user.username
data_source.updater = request.user.username
data_source.save()

return Response()
Expand Down
10 changes: 10 additions & 0 deletions src/bk-user/tests/test_utils/tenant.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
"""
from typing import Optional

from bkuser.apps.tenant.models import Tenant
Expand Down

0 comments on commit 8d38773

Please sign in to comment.