mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Forgot to return the field at the end of the validation
This commit is contained in:
@@ -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():
|
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")
|
raise forms.ValidationError("This character already has a open application")
|
||||||
|
|
||||||
return self.cleaned_data
|
return self.cleaned_data['character']
|
||||||
|
|
||||||
return ApplicationForm
|
return ApplicationForm
|
||||||
|
|
||||||
class NoteForm(forms.ModelForm):
|
class NoteForm(forms.ModelForm):
|
||||||
|
|||||||
Reference in New Issue
Block a user