pytask/taskapp/forms/task.py
changeset 11 d28fcc644fbb
parent 5 aea7e764c033
child 14 f2623fb8041a
--- a/pytask/taskapp/forms/task.py	Fri Jan 29 23:34:19 2010 +0530
+++ b/pytask/taskapp/forms/task.py	Sat Jan 30 13:03:09 2010 +0530
@@ -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)