author | nishanth |
Sat, 30 Jan 2010 13:04:58 +0530 | |
changeset 12 | c823b42970a4 |
parent 11 | d28fcc644fbb |
child 14 | f2623fb8041a |
permissions | -rw-r--r-- |
11
d28fcc644fbb
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.
nishanth
parents:
5
diff
changeset
|
1 |
from django import forms |
d28fcc644fbb
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.
nishanth
parents:
5
diff
changeset
|
2 |
from pytask.taskapp.models import Task |
d28fcc644fbb
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.
nishanth
parents:
5
diff
changeset
|
3 |
|
d28fcc644fbb
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.
nishanth
parents:
5
diff
changeset
|
4 |
class TaskCreateForm(forms.ModelForm): |
d28fcc644fbb
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.
nishanth
parents:
5
diff
changeset
|
5 |
class Meta: |
d28fcc644fbb
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.
nishanth
parents:
5
diff
changeset
|
6 |
model = Task |
d28fcc644fbb
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.
nishanth
parents:
5
diff
changeset
|
7 |
fields = ['title', 'desc', 'tags', 'credits'] |
d28fcc644fbb
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.
nishanth
parents:
5
diff
changeset
|
8 |
publish = forms.BooleanField(required=False) |