taskapp/forms/task.py
changeset 220 807e4b701a20
parent 219 f04a1ec7a07f
child 224 c41e38f36299
--- a/taskapp/forms/task.py	Wed Jan 05 22:30:45 2011 +0530
+++ b/taskapp/forms/task.py	Wed Jan 05 23:51:10 2011 +0530
@@ -1,5 +1,5 @@
 from django import forms
-from pytask.taskapp.models import Task
+from pytask.taskapp.models import Task, WorkReport
 
 class TaskCreateForm(forms.ModelForm):
     class Meta:
@@ -99,3 +99,8 @@
         reason = forms.CharField(min_length=1, required=True)
     return myForm(instance) if instance else myForm()
 
+class WorkReportForm(forms.ModelForm):
+
+    class Meta:
+        model = WorkReport
+        fields = ['remarks', 'attachment']