~registry/ubuntu-teamreports/trunk

« back to all changes in this revision

Viewing changes to teamreports/reports/forms.py

  • Committer: Daniel Holbach
  • Date: 2010-04-16 10:07:59 UTC
  • Revision ID: daniel.holbach@canonical.com-20100416100759-eqgm3ai408shfyzn
add proposal management form, use DateFields, add possibility to mark proposals for deletion

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    who = forms.CharField(widget=forms.HiddenInput())
14
14
    date = forms.DateField(widget=forms.HiddenInput())
15
15
    approved = forms.BooleanField(required=False, widget=forms.HiddenInput())
 
16
    mark_delete = forms.BooleanField(required=False, widget=forms.HiddenInput())
16
17
 
17
18
    def clean(self):
18
19
        cleaned_data = self.cleaned_data
21
22
 
22
23
    class Meta:
23
24
        model = TeamProposal
 
25
 
 
26
class ApprovalForm(forms.ModelForm):
 
27
    id = forms.IntegerField(widget=forms.HiddenInput())
 
28
    class Meta:
 
29
        model = TeamProposal