jumpserver/apps/users/forms.py

16 lines
308 B
Python
Raw Normal View History

2016-08-14 11:18:41 +00:00
# ~*~ 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',
]