conference/forms.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 25 Sep 2009 00:27:42 +0530
changeset 6 4e819dd96e1f
child 7 4976650293f4
permissions -rw-r--r--
Restructured and revamped the entire settings.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
from django import forms
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     2
from django.contrib.auth.models import User
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     3
from django.utils.translation import ugettext_lazy as _
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     4
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     5
from content.models import Participant
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     7
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     8
class ParticipantForm(forms.ModelForm):
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     9
  class Meta:
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    10
    model = Participant
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    11
    
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    12
class LoginForm(forms.Form):
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    13
	username = forms.CharField(max_length=30, label=_(u'username'))
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    14
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    15
	password = forms.CharField(max_length=50,widget=forms.PasswordInput,
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    16
                               label=_("Enter New Password"))