Removed the need for forms to update the Application status.

This commit is contained in:
2010-05-08 16:45:20 +01:00
parent adb172bf47
commit 14db13d0c8
5 changed files with 21 additions and 73 deletions

View File

@@ -37,25 +37,6 @@ def CreateApplicationForm(user):
return self.cleaned_data
return ApplicationForm
def CreateApplicationStatusForm(admin):
if admin:
form_choices = APPLICATION_STATUS_CHOICES_ADMIN
else:
form_choices = APPLICATION_STATUS_CHOICES_USER
class ApplicationStatusForm(forms.Form):
""" Application Status Change Form """
application = forms.IntegerField(required=True, widget=forms.HiddenInput)
new_status = forms.ChoiceField(label = u'New Status', choices = form_choices)
class Meta:
exclude = ('application')
return ApplicationStatusForm
class NoteForm(forms.ModelForm):
class Meta: