taskapp/forms/task.py
changeset 219 f04a1ec7a07f
parent 218 59107ce0a618
child 220 807e4b701a20
--- a/taskapp/forms/task.py	Wed Jan 05 22:22:10 2011 +0530
+++ b/taskapp/forms/task.py	Wed Jan 05 22:30:45 2011 +0530
@@ -4,7 +4,7 @@
 class TaskCreateForm(forms.ModelForm):
     class Meta:
         model = Task
-        fields = ['title', 'desc', 'tags_field', 'credits']
+        fields = ['title', 'desc', 'tags_field', 'pynts']
     #publish = forms.BooleanField(required=False)
 
     def clean_title(self):
@@ -25,7 +25,7 @@
 class EditTaskForm(forms.ModelForm):
     class Meta:
         model = Task
-        fields = ['title', 'desc', 'tags_field', 'credits']
+        fields = ['title', 'desc', 'tags_field', 'pynts']
 
     def clean_desc(self):
         data = self.cleaned_data['desc'].strip()
@@ -85,7 +85,7 @@
         task = forms.ChoiceField(choices=task_choices)
     return myForm()
 
-def AssignCreditForm(choices, instance=None):
+def AssignPyntForm(choices, instance=None):
     
     class myForm(forms.Form):
         user = forms.ChoiceField(choices=choices, required=True)