pytask/taskapp/forms/task.py
author nishanth
Sat, 30 Jan 2010 13:03:09 +0530
changeset 11 d28fcc644fbb
parent 5 aea7e764c033
child 14 f2623fb8041a
permissions -rw-r--r--
implemented create task view which needed task.py in events. added a method show_msg to views/user.py and used it in logoff view.

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)