diff options
author | Filipp Lepalaan <f@230.to> | 2014-02-20 12:44:49 +0200 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2014-02-20 12:44:49 +0200 |
commit | 3321241b61766045a68a3d607b67e11a95014e87 (patch) | |
tree | d13ce50a7c46f986f403733e9922e766665e7d2b /apps/it/forms.py | |
parent | 75ad7e4bd7d69243e7e5281c2642f00478fb072d (diff) | |
download | pudding-3321241b61766045a68a3d607b67e11a95014e87.tar.gz pudding-3321241b61766045a68a3d607b67e11a95014e87.tar.bz2 pudding-3321241b61766045a68a3d607b67e11a95014e87.zip |
Require logins, removed jquery UI
Diffstat (limited to 'apps/it/forms.py')
-rw-r--r-- | apps/it/forms.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/it/forms.py b/apps/it/forms.py index 15d1bf1..2383374 100644 --- a/apps/it/forms.py +++ b/apps/it/forms.py @@ -48,3 +48,13 @@ class SimpleTaskForm(forms.ModelForm): widgets = { 'description': SmallTextarea, } + +class LoginForm(forms.Form): + username = forms.CharField() + password = forms.CharField(widget=forms.PasswordInput) + +class SimpleUserForm(forms.ModelForm): + class Meta: + model = User + fields = ['email', 'username', 'password'] + widgets = {'password': forms.PasswordInput} |