Skip to content

Commit

Permalink
fix(migrate): recycle_bin error (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
nannan00 authored Jun 29, 2023
1 parent 61f3041 commit efd198c
Showing 1 changed file with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
# -*- 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 __future__ import unicode_literals
# Generated by Django 3.2.15 on 2023-06-29 09:12

from django.db import migrations

Expand All @@ -36,13 +25,18 @@ def forwards_func(apps, schema_editor):
operator="admin"
)
recycle_bin_relationships.append(recycle_bin_record)
RecycleBin.objects.bulk_create(recycle_bin_relationships)

if recycle_bin_relationships:
RecycleBin.objects.bulk_create(recycle_bin_relationships)


class Migration(migrations.Migration):

dependencies = [
('recycle_bin', '0001_initial'),
('categories', '0014_alter_profilecategory_status'),
]

operations = [migrations.RunPython(forwards_func)]
operations = [
migrations.RunPython(forwards_func)
]

0 comments on commit efd198c

Please sign in to comment.