changeset 6 | 4e819dd96e1f |
child 7 | 4976650293f4 |
5:7358eeae14d8 | 6:4e819dd96e1f |
---|---|
1 from django import forms |
|
2 from django.contrib.auth.models import User |
|
3 from django.utils.translation import ugettext_lazy as _ |
|
4 |
|
5 from content.models import Participant |
|
6 |
|
7 |
|
8 class ParticipantForm(forms.ModelForm): |
|
9 class Meta: |
|
10 model = Participant |
|
11 |
|
12 class LoginForm(forms.Form): |
|
13 username = forms.CharField(max_length=30, label=_(u'username')) |
|
14 |
|
15 password = forms.CharField(max_length=50,widget=forms.PasswordInput, |
|
16 label=_("Enter New Password")) |