mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
349 B
19 lines
349 B
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
|
|
from .user import User
|
|
from .group import UserGroup
|
|
|
|
|
|
def init_model():
|
|
for cls in [User, UserGroup]:
|
|
if getattr(cls, 'initial'):
|
|
cls.initial()
|
|
|
|
|
|
def generate_fake():
|
|
for cls in [User, UserGroup]:
|
|
if getattr(cls, 'generate_fake'):
|
|
cls.generate_fake()
|