mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-01 01:31:50 +00:00
[Fixture] 修改asset detail
This commit is contained in:
@@ -2,19 +2,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
|
||||
from . import IDC, SystemUser, AdminUser, AssetGroup, Asset, Tag
|
||||
from . import IDC, SystemUser, AdminUser, AssetGroup, Asset
|
||||
|
||||
__all__ = ['initial', 'generate_fake']
|
||||
__all__ = ['init_model', 'generate_fake']
|
||||
|
||||
|
||||
def initial():
|
||||
for cls in [IDC, SystemUser, AdminUser, AssetGroup, Asset, Tag]:
|
||||
def init_model():
|
||||
for cls in [IDC, SystemUser, AdminUser, AssetGroup, Asset]:
|
||||
if hasattr(cls, 'initial'):
|
||||
cls.initial()
|
||||
|
||||
|
||||
def generate_fake():
|
||||
for cls in [IDC, SystemUser, AdminUser, AssetGroup, Asset, Tag]:
|
||||
for cls in [IDC, SystemUser, AdminUser, AssetGroup, Asset]:
|
||||
if hasattr(cls, 'generate_fake'):
|
||||
cls.generate_fake()
|
||||
|
||||
|
Reference in New Issue
Block a user