equal
deleted
inserted
replaced
2 from pytask.taskapp.models import Task, Claim |
2 from pytask.taskapp.models import Task, Claim |
3 |
3 |
4 class TaskCreateForm(forms.ModelForm): |
4 class TaskCreateForm(forms.ModelForm): |
5 class Meta: |
5 class Meta: |
6 model = Task |
6 model = Task |
7 fields = ['title', 'desc', 'tags', 'credits'] |
7 fields = ['title', 'desc', 'tags_field', 'credits'] |
8 publish = forms.BooleanField(required=False) |
8 publish = forms.BooleanField(required=False) |
9 |
9 |
10 def AddMentorForm(choices,instance=None): |
10 def AddMentorForm(choices,instance=None): |
11 """ return a form object with appropriate choices """ |
11 """ return a form object with appropriate choices """ |
12 |
12 |