Forgot to return the field at the end of the validation

This commit is contained in:
2011-01-19 10:01:46 +00:00
parent 230c31a1b6
commit 796329d469

View File

@@ -38,7 +38,8 @@ def CreateApplicationForm(user):
if Application.objects.filter(character=self.cleaned_data['character']).exclude(status__in=[APPLICATION_STATUS_COMPLETED, APPLICATION_STATUS_REJECTED]).count():
raise forms.ValidationError("This character already has a open application")
return self.cleaned_data
return self.cleaned_data['character']
return ApplicationForm
class NoteForm(forms.ModelForm):