taskapp/forms/task.py
changeset 50 d40e86f958f7
parent 25 c0e4fc8b8b5b
child 89 1cc03941ed5d
equal deleted inserted replaced
49:52b774df918e 50:d40e86f958f7
     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