equal
deleted
inserted
replaced
99 fields = ['title', 'desc' , 'pynts', 'tags_field'] |
99 fields = ['title', 'desc' , 'pynts', 'tags_field'] |
100 |
100 |
101 class EditTextbookForm(forms.ModelForm): |
101 class EditTextbookForm(forms.ModelForm): |
102 |
102 |
103 class Meta: |
103 class Meta: |
104 model = TextBook |
104 model = Task |
105 fields = ['name', 'chapters', 'tags_field'] |
105 fields = ['title', 'desc', 'pynts', 'tags_field'] |
106 |
106 |
107 def AddTaskForm(task_choices, is_plain=False): |
107 def AddTaskForm(task_choices, is_plain=False): |
108 """ if is_plain is true, it means the task has no subs/deps. |
108 """ if is_plain is true, it means the task has no subs/deps. |
109 so we also give a radio button to choose between subs and dependencies. |
109 so we also give a radio button to choose between subs and dependencies. |
110 else we only give choices. |
110 else we only give choices. |