Skip to content

Commit

Permalink
minor: resolve #1690 conversations
Browse files Browse the repository at this point in the history
  • Loading branch information
narasux committed May 8, 2024
1 parent 6a29a0e commit e8ad8ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.2.20 on 2024-05-07 06:57
# Generated by Django 3.2.20 on 2024-05-08 01:52

import bkuser.apps.tenant.constants
from django.db import migrations, models
Expand Down Expand Up @@ -39,7 +39,7 @@ class Migration(migrations.Migration):
('target_tenant', models.ForeignKey(db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, related_name='target_tenant', to='tenant.tenant')),
],
options={
'unique_together': {('source_tenant', 'target_tenant')},
'unique_together': {('source_tenant', 'target_tenant'), ('name', 'source_tenant')},
},
),
]
1 change: 1 addition & 0 deletions src/bk-user/bkuser/apps/tenant/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,5 +237,6 @@ class CollaborationStrategy(AuditedModel):

class Meta:
unique_together = [
("name", "source_tenant"),
("source_tenant", "target_tenant"),
]

0 comments on commit e8ad8ca

Please sign in to comment.