app/projrev/views/helpers/forms.py
changeset 43 55e650bb9dbe
parent 39 e7880a8f7e04
--- a/app/projrev/views/helpers/forms.py	Wed Aug 12 19:30:12 2009 +0530
+++ b/app/projrev/views/helpers/forms.py	Wed Aug 12 22:41:21 2009 +0530
@@ -11,8 +11,10 @@
 from django.contrib.auth.models import User
 
 from projrev.models import Project
+from projrev.models import Proposal
 from projrev.models import Review
 
+
 class ProposalForm(forms.ModelForm):
   """Creates a form for the project.
   """
@@ -38,6 +40,11 @@
   project = forms.ModelChoiceField(queryset=Project.objects.all(), 
                                    widget=forms.HiddenInput(),
                                    required=False)
+
+  proposal = forms.ModelChoiceField(queryset=Proposal.objects.all(), 
+                                    widget=forms.HiddenInput(),
+                                    required=False)
+
   reviewer = forms.ModelChoiceField(queryset=User.objects.all(), 
                                     widget=forms.HiddenInput(),
                                     required=False)