conference/forms.py
author Shantanu <shantanu@fossee.in>
Fri, 02 Oct 2009 18:31:55 +0530
changeset 14 9548d0ecc8d7
parent 8 f0b5ff862c6d
child 15 8de52278da5d
permissions -rwxr-xr-x
Added Organizers and corrected links.

from django import forms
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _

from conference.models import Participant


class ParticipantForm(forms.ModelForm):
  class Meta:
    model = Participant


class LoginForm(forms.Form):
	username = forms.CharField(max_length=30, label=_(u'username'))

	password = forms.CharField(max_length=50,widget=forms.PasswordInput,
                               label=_("Enter New Password"))