taskapp/forms/task.py
changeset 18 a39549bd5b08
parent 12 a93eebabfeb1
child 21 c28774fe7ffd
equal deleted inserted replaced
17:aa45fec40e7e 18:a39549bd5b08
       
     1 from django import forms
       
     2 from pytask.taskapp.models import Task
       
     3 
       
     4 class TaskCreateForm(forms.ModelForm):
       
     5     class Meta:
       
     6         model = Task
       
     7         fields = ['title', 'desc', 'tags', 'credits']
       
     8     publish = forms.BooleanField(required=False)