mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-06 09:51:00 +00:00
Change models dir
This commit is contained in:
16
apps/users/models/utils.py
Normal file
16
apps/users/models/utils.py
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
|
||||
from . import User, UserGroup
|
||||
|
||||
|
||||
def initial_model():
|
||||
for cls in [User, UserGroup]:
|
||||
cls.initial()
|
||||
|
||||
|
||||
def generate_fake():
|
||||
for cls in [User, UserGroup]:
|
||||
cls.generate_fake()
|
||||
|
Reference in New Issue
Block a user