From b0a67f1f3fe056ed049ad1e703237ec093c7cc14 Mon Sep 17 00:00:00 2001 From: Primal Pappachan Date: Fri, 13 Apr 2012 10:22:06 +0530 Subject: or instead of and for dd_no and dd_amount check --- aloha/allotter/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aloha/allotter/forms.py b/aloha/allotter/forms.py index 9747cf3..a2b205c 100644 --- a/aloha/allotter/forms.py +++ b/aloha/allotter/forms.py @@ -99,7 +99,7 @@ class UserLoginForm(forms.Form): ##Validating the DD Details - if not dd_no and not dd_amount: + if not dd_no or not dd_amount: raise forms.ValidationError("Fill in the Demand Draft Details") elif len(dd_no) != 6 or dd_no.count('0') == 6 or dd_no.strip(digits): raise forms.ValidationError("Demand Draft Number you have entered is not valid.") -- cgit