conference/forms.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Mon, 12 Oct 2009 19:33:02 +0530
changeset 27 87910f9bd6ec
parent 15 8de52278da5d
permissions -rwxr-xr-x
Corrected and added registration and activation templates.

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=20,widget=forms.PasswordInput,
                               label=_("password"))