first commit for v0.2
This commit is contained in:
parent
6ba03afc73
commit
1463854a45
143 changed files with 20775 additions and 2764 deletions
17
accounts/forms.py
Normal file
17
accounts/forms.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
from django.forms.models import modelform_factory
|
||||
from django.forms.widgets import PasswordInput
|
||||
|
||||
from accounts.models import *
|
||||
|
||||
|
||||
__all__ = [ 'UserForm', 'GroupForm', 'TeamForm' ]
|
||||
|
||||
|
||||
UserForm = modelform_factory(User,
|
||||
fields=['username', 'first_name', 'last_name',
|
||||
'password', 'email', 'is_superuser'],
|
||||
widgets={'password': PasswordInput})
|
||||
GroupForm = modelform_factory(Group,
|
||||
fields=['name'])
|
||||
TeamForm = modelform_factory(Team,
|
||||
fields=['name'])
|
Loading…
Add table
Add a link
Reference in a new issue