(apps, schema_editor)
| 11 | |
| 12 | |
| 13 | def insert_default_data(apps, schema_editor): |
| 14 | UserModel = apps.get_model('users', 'User') |
| 15 | UserModel.objects.create(id='f0dd8f71-e4ee-11ee-8c84-a8a1595801ab', email='', username='admin', |
| 16 | nick_name="系统管理员", |
| 17 | password=password_encrypt(default_password), |
| 18 | role=RoleConstants.ADMIN.name, |
| 19 | is_active=True) |
| 20 | |
| 21 | |
| 22 | class Migration(migrations.Migration): |
nothing calls this directly
no test coverage detected