taskapp/forms/user.py
author anoop
Wed, 17 Feb 2010 17:46:16 +0530
changeset 40 43853e376bb8
parent 27 8d52492d3c14
child 44 2b09336352b5
permissions -rw-r--r--
deleted unwanted code to start using django-registration.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13
0fb64b24a1c9 added views, templates for register, login, logout user.
anoop
parents: 12
diff changeset
     1
#!/usr/bin/python2.5
0fb64b24a1c9 added views, templates for register, login, logout user.
anoop
parents: 12
diff changeset
     2
0fb64b24a1c9 added views, templates for register, login, logout user.
anoop
parents: 12
diff changeset
     3
from django import forms
23
f33084ea1361 added view profile and edit profile functionalities.
anoop
parents: 13
diff changeset
     4
from pytask.taskapp.models import GENDER_CHOICES, Profile
f33084ea1361 added view profile and edit profile functionalities.
anoop
parents: 13
diff changeset
     5
from django.forms import ModelForm
13
0fb64b24a1c9 added views, templates for register, login, logout user.
anoop
parents: 12
diff changeset
     6
23
f33084ea1361 added view profile and edit profile functionalities.
anoop
parents: 13
diff changeset
     7
class UserProfileEditForm(ModelForm):
f33084ea1361 added view profile and edit profile functionalities.
anoop
parents: 13
diff changeset
     8
    class Meta:
f33084ea1361 added view profile and edit profile functionalities.
anoop
parents: 13
diff changeset
     9
        model = Profile
f33084ea1361 added view profile and edit profile functionalities.
anoop
parents: 13
diff changeset
    10
        exclude = ('user','rights','dob','credits')