mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-04-30 04:14:13 +00:00
18 lines
327 B
Python
18 lines
327 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
|
|
from . import User, 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()
|