mirror of https://github.com/jumpserver/jumpserver
perf: 修改迁移文件(default_org_name: DEFAULT => Default)
parent
ea325f6e52
commit
18a390d66a
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue