first commit for v0.2

This commit is contained in:
Élie Bouttier 2014-08-30 15:38:06 -07:00
parent 6ba03afc73
commit 1463854a45
143 changed files with 20775 additions and 2764 deletions

17
accounts/forms.py Normal file
View 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'])