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