taskapp/forms/task.py
author nishanth
Thu, 04 Feb 2010 22:27:47 +0530
changeset 18 a39549bd5b08
parent 12 a93eebabfeb1
child 21 c28774fe7ffd
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)