EditTextBook form should use Task model itself.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Fri, 04 Feb 2011 16:36:00 +0530
changeset 555 20fe9db8bc81
parent 554 18c47ba53250
child 556 a0e57ca7cf56
EditTextBook form should use Task model itself.
pytask/taskapp/forms.py
--- a/pytask/taskapp/forms.py	Fri Feb 04 16:35:29 2011 +0530
+++ b/pytask/taskapp/forms.py	Fri Feb 04 16:36:00 2011 +0530
@@ -101,8 +101,8 @@
 class EditTextbookForm(forms.ModelForm):
 
     class Meta:
-        model = TextBook
-        fields = ['name', 'chapters', 'tags_field']
+        model = Task
+        fields = ['title', 'desc', 'pynts', 'tags_field']
 
 def AddTaskForm(task_choices, is_plain=False):
     """ if is_plain is true, it means the task has no subs/deps.