taskapp/forms/task.py
author nishanth
Thu, 04 Feb 2010 22:34:22 +0530
changeset 20 ec7b1751c161
parent 18 a39549bd5b08
child 21 c28774fe7ffd
permissions -rw-r--r--
renamed templates/error.html to templates/show_msg.html and made changes accordingly in views/user.

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)