app/projrev/views/helpers/forms.py
changeset 13 684540719344
parent 6 17cab73c49eb
child 19 0c9bdcfac9f7
equal deleted inserted replaced
12:aac4944aca52 13:684540719344
    14 
    14 
    15 class ProposalForm(forms.ModelForm):
    15 class ProposalForm(forms.ModelForm):
    16   """Creates a form for the project.
    16   """Creates a form for the project.
    17   """
    17   """
    18 
    18 
    19   document = forms.FileField()
    19   document = forms.FileField(required=False)
    20 
    20 
    21   class Meta:
    21   class Meta:
    22     # We store most of the data in Project model. So even though the
    22     # We store most of the data in Project model. So even though the
    23     # name and the purpose of the form is for Proposal acceptance, we
    23     # name and the purpose of the form is for Proposal acceptance, we
    24     # use Project model here.
    24     # use Project model here.