mirror of https://github.com/jumpserver/jumpserver
16 lines
308 B
Python
16 lines
308 B
Python
![]() |
# ~*~ coding: utf-8 ~*~
|
||
|
|
||
|
from django.forms import ModelForm
|
||
|
|
||
|
from .models import User, UserGroup
|
||
|
|
||
|
|
||
|
class UserForm(ModelForm):
|
||
|
class Meta:
|
||
|
model = User
|
||
|
fields = [
|
||
|
'username', 'name', 'email', 'groups', 'wechat',
|
||
|
'phone', 'enable_2FA', 'role', 'comment',
|
||
|
]
|
||
|
|