diff options
Diffstat (limited to 'taskapp/forms')
-rw-r--r-- | taskapp/forms/task.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/taskapp/forms/task.py b/taskapp/forms/task.py index e69de29..c185164 100644 --- a/taskapp/forms/task.py +++ b/taskapp/forms/task.py @@ -0,0 +1,8 @@ +from django import forms +from pytask.taskapp.models import Task + +class TaskCreateForm(forms.ModelForm): + class Meta: + model = Task + fields = ['title', 'desc', 'tags', 'credits'] + publish = forms.BooleanField(required=False) |