app/projrev/views/helpers/forms.py
changeset 26 97bd3c28c957
parent 24 7257b66a6766
child 30 94fe7fe7394d
--- a/app/projrev/views/helpers/forms.py	Mon Aug 10 00:40:47 2009 +0530
+++ b/app/projrev/views/helpers/forms.py	Mon Aug 10 01:00:32 2009 +0530
@@ -8,6 +8,7 @@
 
 
 from django import forms
+from django.contrib.auth.models import User
 
 from projrev.models import Project
 from projrev.models import Review
@@ -36,9 +37,10 @@
   project = forms.ModelChoiceField(queryset=Project.objects.all(), 
                                    widget=forms.HiddenInput(),
                                    required=False)
+  reviewer = forms.ModelChoiceField(queryset=User.objects.all(), 
+                                    widget=forms.HiddenInput(),
+                                    required=False)
 
   class Meta:
     # Create a form from Review data model.
     model = Review
-
-    exclude = ('reviewer')