perf: 修改迁移文件(default_org_name: DEFAULT => Default)

pull/5778/head
Bai 2021-03-17 11:08:20 +08:00 committed by 老广
parent ea325f6e52
commit 18a390d66a
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ default_id = '00000000-0000-0000-0000-000000000002'
def add_default_org(apps, schema_editor):
org_cls = apps.get_model('orgs', 'Organization')
defaults = {'name': 'DEFAULT', 'id': default_id}
defaults = {'name': 'Default', 'id': default_id}
org_cls.objects.get_or_create(defaults=defaults, id=default_id)