From 796329d4693625ca5c9d8307ff27f159bdbe9f75 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 19 Jan 2011 10:01:46 +0000 Subject: [PATCH] Forgot to return the field at the end of the validation --- hr/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hr/forms.py b/hr/forms.py index a349400..34b8ba3 100644 --- a/hr/forms.py +++ b/hr/forms.py @@ -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):